diff --git a/src/Util/Images.php b/src/Util/Images.php index 71a8bfea7e..1305441304 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -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 []; }