fixed syntax error happening if resources is not enabled for a user or not installed

This commit is contained in:
Ralf Becker 2005-07-27 16:13:42 +00:00
parent 2bc834b576
commit 9a33b1f7be

View File

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