mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
fixed php fatal error in ressource creation
This commit is contained in:
parent
2d6b9f9065
commit
b05ffeb307
@ -235,8 +235,8 @@ class resources_ui
|
||||
|
||||
$sel_options['gen_src_list'] = $this->bo->get_genpicturelist();
|
||||
$sel_options['cat_id'] = $this->bo->acl->get_cats(EGW_ACL_ADD);
|
||||
$sel_options['cat_id'] = count($sel_options['cat_id']) == 1 ? $sel_options['cat_id'] :
|
||||
$content['cat_id'] ? $sel_options['cat_id'] : array('' => lang('select one')) + $sel_options['cat_id'];
|
||||
$sel_options['cat_id'] = count($sel_options['cat_id']) == 1 || $content['cat_id'] ? $sel_options['cat_id'] :
|
||||
array('' => lang('select one')) + $sel_options['cat_id'];
|
||||
if($accessory_of > 0 || $content['accessory_of'] > 0)
|
||||
{
|
||||
$content['accessory_of'] = $content['accessory_of'] ? $content['accessory_of'] : $accessory_of;
|
||||
|
Loading…
Reference in New Issue
Block a user