1
0
Fork 0
mirror of https://github.com/friendica/friendica synced 2025-04-01 12:40:16 +00:00

Merge pull request from annando/warning

Fix warning: Undefined array key "mime"
This commit is contained in:
Hypolite Petovan 2023-11-22 22:00:56 -05:00 committed by GitHub
commit 02afde3eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 [];
} }