From 9a33b1f7beec990a11039781a5cb62eb3334bfdd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 27 Jul 2005 16:13:42 +0000 Subject: [PATCH] fixed syntax error happening if resources is not enabled for a user or not installed --- resources/inc/class.resources_select_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/inc/class.resources_select_widget.inc.php b/resources/inc/class.resources_select_widget.inc.php index 162a7cd859..1605fb254c 100644 --- a/resources/inc/class.resources_select_widget.inc.php +++ b/resources/inc/class.resources_select_widget.inc.php @@ -59,11 +59,11 @@ */ function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl) { - if (!$GLOBALS['phpgw_info']['user']['apps']['resources']) + if (!$GLOBALS['egw_info']['user']['apps']['resources']) { $cell = $tmpl->empty_cell(); $cell['label'] = 'no resources'; - break; + return false; } $tpl =& new etemplate('resources.resource_selectbox'); // keep the editor away from the generated tmpls