Fix warning: Undefined array key "mime"

This commit is contained in:
Michael 2023-11-22 19:16:09 +00:00
parent 6fa7b45294
commit 0279b3dee9

View File

@ -244,12 +244,12 @@ class Images
$filesize = strlen($img_str); $filesize = strlen($img_str);
try { try {
$data = (array)@getimagesizefromstring($img_str); $data = @getimagesizefromstring($img_str);
} catch (\Exception $e) { } catch (\Exception $e) {
return []; return [];
} }
if (empty($data)) { if (!$data) {
return []; return [];
} }