From 0db87ad7501493fa301c82863d9c59d633190fdd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Nov 2005 10:37:00 +0000 Subject: [PATCH] removed selectbox if no resource-cats exist (gave and error and empty selectbox before) --- resources/inc/class.ui_resources.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/inc/class.ui_resources.inc.php b/resources/inc/class.ui_resources.inc.php index 4875601add..b7d14c1bb0 100755 --- a/resources/inc/class.ui_resources.inc.php +++ b/resources/inc/class.ui_resources.inc.php @@ -494,8 +494,8 @@ class ui_resources function get_calendar_sidebox($view_menuaction, $date='') { $selectbox_content = array(lang('Select resources')); - $selectbox_content[0] = lang('Select resources'); $cats = $this->bo->acl->get_cats(EGW_ACL_READ); + if (!$cats) return array(); // this gets the resource-ids of the cats and implodes them to the array-key of the selectbox, // so it is possible to select all resources of a category