]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Images.php
Merge pull request #11966 from annando/date-correction
[friendica.git] / src / Util / Images.php
index 20212e49538362ad3d643524c529f2169e106649..eb1e8c4375a491ca9f2ca7107082e52194cd5199 100644 (file)
@@ -179,7 +179,7 @@ class Images
        /**
         * Gets info array from given URL, cached data has priority
         *
-        * @param string $url URL
+        * @param string $url
         * @return array Info
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
@@ -206,7 +206,8 @@ class Images
 
        /**
         * Gets info from URL uncached
-        * @param string $url URL
+        *
+        * @param string $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 : [];
        }
 
        /**