From cbf0f41ad52136ff94ed5d9d6a9ac0195558a258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Mon, 13 Jun 2005 15:14:46 +0000 Subject: [PATCH] fixed problem with sessiondata --- resources/inc/class.ui_resources.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/inc/class.ui_resources.inc.php b/resources/inc/class.ui_resources.inc.php index 7b040ab95c..fc1b8d6dcd 100755 --- a/resources/inc/class.ui_resources.inc.php +++ b/resources/inc/class.ui_resources.inc.php @@ -105,8 +105,12 @@ class ui_resources $content['nm']['no_cat'] = true; $content['nm']['order'] = 'name'; $content['nm']['sort'] = 'ASC'; - $content['nm'] = $GLOBALS['egw']->session->appsession('session_data','resources_index_nm'); - + + $nm_session_data = $GLOBALS['egw']->session->appsession('session_data','resources_index_nm'); + if($nm_session_data) + { + $content['nm'] = $nm_session_data; + } // check if user is permitted to add resources if(!$this->bo->acl->get_cats(EGW_ACL_ADD))