forked from extern/egroupware
fixed syntax error happening if resources is not enabled for a user or not installed
This commit is contained in:
parent
2bc834b576
commit
9a33b1f7be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user