Commit 1da9206b authored by Jonny Bradley's avatar Jonny Bradley

[FIX] Mailin: Show message if no accounts set up.

parent 82a0049d
{title}{tr}Mail-in feature{/tr}{/title}
{$content}
{if !empty($content)}
{$content}
{else}
<p>{tr}You do not have any mailin accounts set up.{/tr}</p>
{if $tiki_p_admin_mailin}
<p>{tr}Click here to go to mailin admin.{/tr} {icon _id="arrow_right" href="tiki-admin_mailin.php"}</p>
{/if}
{/if}
......@@ -51,7 +51,11 @@ global $debugger;
if (defined($debugger)) $debugger->msg("tiki-mailin-code.php");
// Get a list of ACTIVE emails accounts configured for mailin procedures
$accs = $mailinlib->list_active_mailin_accounts(0, -1, 'account_desc', '');
//print ('<a href="tiki-admin_mailin.php">Admin</a><br /><br />');
if (empty($accs['data'])) {
$content = '';
return;
}
$content = '<br /><br />';
// foreach account
foreach($accs['data'] as $acc) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment