summaryrefslogtreecommitdiff
path: root/www/admin/user/forward.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/user/forward.php')
-rw-r--r--www/admin/user/forward.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/www/admin/user/forward.php b/www/admin/user/forward.php
index 789ba44..e470279 100644
--- a/www/admin/user/forward.php
+++ b/www/admin/user/forward.php
@@ -86,9 +86,13 @@ $smarty->assign( 'menuitems', $menuitems );
$smarty->assign( 'submenuitems',
array_key_exists('submenu',
$menuitems[$sidx])?$menuitems[$sidx]['submenu']:array() );
-$smarty->assign( 'active', $handler->fetchForwardSegment()->isActive() );
-$smarty->assign( 'keep', $handler->fetchForwardSegment()->getKeepOnServer() );
-$smarty->assign( 'address', $handler->fetchForwardSegment()->getForwardAddress() );
+
+if (isset($handler)) {
+ $smarty->assign( 'active', $handler->fetchForwardSegment()->isActive() );
+ $smarty->assign( 'keep', $handler->fetchForwardSegment()->getKeepOnServer() );
+ $smarty->assign( 'address', $handler->fetchForwardSegment()->getForwardAddress() );
+}
+
$smarty->assign( 'maincontent', 'forward.tpl' );
$smarty->display('page.tpl');