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))