users/edit-alias.php:

- fix undefined smarty variables


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1150 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 15 years ago
parent 8f2a3f00ad
commit b26012ca18

@ -51,7 +51,13 @@ $vacation_domain = $CONF['vacation_domain'];
if ($_SERVER['REQUEST_METHOD'] == "GET")
{
($tStoreAndForward) ? $smarty->assign ('forward_and_store', ' checked="checked"') : $smarty->assign ('forward_only', ' checked="checked"');
if ($tStoreAndForward) {
$smarty->assign ('forward_and_store', ' checked="checked"');
$smarty->assign ('forward_only', '');
} else {
$smarty->assign ('forward_and_store', '');
$smarty->assign ('forward_only', ' checked="checked"');
}
$smarty->assign ('tGotoArray', $tGotoArray);
$smarty->display ('index.tpl');
@ -124,7 +130,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$smarty->assign ('tGotoArray', $tGotoArray);
if ($fForward_and_store == "YES") {
$smarty->assign ('forward_and_store', ' checked="checked"');
$smarty->assign ('forward_only', '');
} else {
$smarty->assign ('forward_and_store', '');
$smarty->assign ('forward_only', ' checked="checked"');
}
$smarty->display ('index.tpl');

Loading…
Cancel
Save