fix error Cannot access offset of type DateTime in isset() or empty()

This commit is contained in:
ralf 2024-08-14 11:46:59 +02:00
parent efad863d18
commit a2391779ab

View File

@ -60,6 +60,10 @@ class Image
//error_log(__METHOD__."('$app', ".array2string($image).", '$extension') NONE found!"); //error_log(__METHOD__."('$app', ".array2string($image).", '$extension') NONE found!");
return null; return null;
} }
if (!is_string($image))
{
return null;
}
$webserver_url = $GLOBALS['egw_info']['server']['webserver_url']; $webserver_url = $GLOBALS['egw_info']['server']['webserver_url'];