Set alias domain-related smarty variables only if alias domains are enabled

This avoids "undefined variable" warnings.

Reported by Kalavera on IRC.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1888 a1433add-5e2c-0410-b055-b7f2511e0802
pull/23/head
Christian Boltz 8 years ago
parent 2bbf6c63d4
commit e3ade3e4b2

@ -450,8 +450,10 @@ $smarty->assign ('tDisplay_up_show', $tDisplay_up_show);
$smarty->assign ('tDisplay_next_show', $tDisplay_next_show);
$smarty->assign ('tDisplay_next', $tDisplay_next);
$smarty->assign ('tAliasDomains', $tAliasDomains);
$smarty->assign ('aliasdomain_data', $aliasdomain_data);
if (Config::bool('alias_domain')) {
$smarty->assign ('tAliasDomains', $tAliasDomains);
$smarty->assign ('aliasdomain_data', $aliasdomain_data);
}
$smarty->assign ('tAlias', $tAlias);
$smarty->assign ('alias_data', $alias_data);

Loading…
Cancel
Save