]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Images.php
Fixed: ?? didn't work here as bool won't be seen as null
[friendica.git] / src / Util / Images.php
index 20212e49538362ad3d643524c529f2169e106649..4fa2eda04ad525f8a13600af30d7ddc3db04435e 100644 (file)
@@ -206,6 +206,7 @@ class Images
 
        /**
         * Gets info from URL uncached
+        *
         * @param string $url URL
         * @return array Info array
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
@@ -246,7 +247,7 @@ class Images
                        $data['size'] = $filesize;
                }
 
-               return $data;
+               return is_array($data) ? $data : [];
        }
 
        /**