Merge pull request #13661 from annando/warning
Fix warning: Undefined array key "mime"
This commit is contained in:
commit
02afde3eec
|
@ -244,12 +244,12 @@ class Images
|
|||
$filesize = strlen($img_str);
|
||||
|
||||
try {
|
||||
$data = (array)@getimagesizefromstring($img_str);
|
||||
$data = @getimagesizefromstring($img_str);
|
||||
} catch (\Exception $e) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (empty($data)) {
|
||||
if (!$data) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user