summaryrefslogtreecommitdiff
path: root/www/admin/user/vacation.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/user/vacation.php')
-rw-r--r--www/admin/user/vacation.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/www/admin/user/vacation.php b/www/admin/user/vacation.php
index 3076847..f0cbac0 100644
--- a/www/admin/user/vacation.php
+++ b/www/admin/user/vacation.php
@@ -87,12 +87,15 @@ $smarty->assign( 'menuitems', $menuitems );
$smarty->assign( 'submenuitems',
array_key_exists('submenu',
$menuitems[$sidx])?$menuitems[$sidx]['submenu']:array() );
-$smarty->assign( 'active', $handler->fetchVacationSegment()->isActive() );
-$smarty->assign( 'text', $handler->fetchVacationSegment()->getResponse() );
-$smarty->assign( 'addresses', $addresses );
-$smarty->assign( 'maildomain', $handler->fetchVacationSegment()->getDomain() );
-$smarty->assign( 'reacttospam', !$handler->fetchVacationSegment()->getReactToSpam() );
-$smarty->assign( 'days', $handler->fetchVacationSegment()->getResendAfter() );
+if (isset($handler)) {
+ $smarty->assign( 'active', $handler->fetchVacationSegment()->isActive() );
+ $smarty->assign( 'text', $handler->fetchVacationSegment()->getResponse() );
+ $smarty->assign( 'addresses', $addresses );
+ $smarty->assign( 'maildomain', $handler->fetchVacationSegment()->getDomain() );
+ $smarty->assign( 'reacttospam', !$handler->fetchVacationSegment()->getReactToSpam() );
+ $smarty->assign( 'days', $handler->fetchVacationSegment()->getResendAfter() );
+}
+
$smarty->assign( 'maincontent', 'vacation.tpl' );
$smarty->display('page.tpl');