fixed php fatal error in ressource creation

This commit is contained in:
Ralf Becker 2013-07-25 11:15:26 +00:00
parent 2d6b9f9065
commit b05ffeb307

View File

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