mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Resources: Fix error adding new accessory
Cannot access offset of type string on string (0)
This commit is contained in:
parent
2c5170f15b
commit
2faa699325
@ -526,10 +526,13 @@ class resources_ui
|
||||
if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']);
|
||||
|
||||
// some presetes
|
||||
$content['resource_picture'] = $this->bo->get_picture($content['res_id'],false);
|
||||
// Set original size picture
|
||||
$content['picture_original'] = $content['picture_src'] == 'own_src'?
|
||||
'webdav.php/apps/resources/'.$content['res_id'].'/.picture.jpg': $this->bo->get_picture($content['res_id'],true);
|
||||
if($content['res_id'])
|
||||
{
|
||||
$content['resource_picture'] = $this->bo->get_picture($content['res_id'], false);
|
||||
// Set original size picture
|
||||
$content['picture_original'] = $content['picture_src'] == 'own_src' ?
|
||||
'webdav.php/apps/resources/' . $content['res_id'] . '/.picture.jpg' : $this->bo->get_picture($content['res_id'], true);
|
||||
}
|
||||
|
||||
if(!$content['res_id'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user