]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Images.php
Friendica copyright changed from 2023 to 2034
[friendica.git] / src / Util / Images.php
index 71a8bfea7e119e82056b10a078ea22785cf1c3e0..b44b1fb8f558fe0a4dbc76078dc531e4dc8a8155 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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 [];
                }