mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:40:17 +00:00
Merge pull request #13661 from annando/warning
Fix warning: Undefined array key "mime"
This commit is contained in:
commit
02afde3eec
1 changed files with 2 additions and 2 deletions
|
@ -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 [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue