diff --git a/resources/inc/class.resources_bo.inc.php b/resources/inc/class.resources_bo.inc.php index cc6bc9b6e4..92af84b370 100755 --- a/resources/inc/class.resources_bo.inc.php +++ b/resources/inc/class.resources_bo.inc.php @@ -673,7 +673,7 @@ class resources_bo */ function remove_picture($res_id) { - if (($arr = egw_link::delete_attached('resources',$res_id,self::PICTURE_NAME))) + if (($arr = egw_link::delete_attached('resources',$res_id,self::PICTURE_NAME)) && is_array($arr)) { return array_shift($arr); // $arr = array($path => (bool)$ok); }