From a2391779ab570b7d49e18cb7e42ef59f67bead04 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 14 Aug 2024 11:46:59 +0200 Subject: [PATCH] fix error Cannot access offset of type DateTime in isset() or empty() --- api/src/Image.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Image.php b/api/src/Image.php index 13d0f55d1c..fb2c935b39 100644 --- a/api/src/Image.php +++ b/api/src/Image.php @@ -60,6 +60,10 @@ class Image //error_log(__METHOD__."('$app', ".array2string($image).", '$extension') NONE found!"); return null; } + if (!is_string($image)) + { + return null; + } $webserver_url = $GLOBALS['egw_info']['server']['webserver_url'];