]> git.mxchange.org Git - friendica.git/commitdiff
Fix warning: Undefined array key "mime"
authorMichael <heluecht@pirati.ca>
Wed, 22 Nov 2023 19:16:09 +0000 (19:16 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Nov 2023 19:16:09 +0000 (19:16 +0000)
src/Util/Images.php

index 71a8bfea7e119e82056b10a078ea22785cf1c3e0..130544130493ccdc6d4fd9a45c887127d831ad9f 100644 (file)
@@ -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 [];
                }