diff --git a/src/Util/Images.php b/src/Util/Images.php index 71a8bfea7..130544130 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 []; }