summaryrefslogtreecommitdiff
path: root/www/admin/user/deliver.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/user/deliver.php')
-rw-r--r--www/admin/user/deliver.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/admin/user/deliver.php b/www/admin/user/deliver.php
index 93f738c..1c955f1 100644
--- a/www/admin/user/deliver.php
+++ b/www/admin/user/deliver.php
@@ -84,8 +84,11 @@ $smarty->assign( 'menuitems', $menuitems );
$smarty->assign( 'submenuitems',
array_key_exists('submenu',
$menuitems[$sidx])?$menuitems[$sidx]['submenu']:array() );
-$smarty->assign( 'active', $handler->fetchDeliverySegment()->isActive() );
-$smarty->assign( 'inbox', $handler->fetchDeliverySegment()->getDeliveryFolder() );
+if (isset($handler)) {
+ $smarty->assign( 'active', $handler->fetchDeliverySegment()->isActive() );
+ $smarty->assign( 'inbox', $handler->fetchDeliverySegment()->getDeliveryFolder() );
+}
+
$smarty->assign( 'maincontent', 'deliver.tpl' );
$smarty->display('page.tpl');