]> git.mxchange.org Git - friendica.git/commitdiff
Return empty array on error (I hope it works this way).
authorRoland Häder <roland@mxchange.org>
Wed, 22 Jun 2022 09:49:54 +0000 (11:49 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Jun 2022 12:36:47 +0000 (14:36 +0200)
src/Util/Images.php

index 20212e49538362ad3d643524c529f2169e106649..c36ce26899886c446857d70df7c86c37433ae54b 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 $data ?? [];
        }
 
        /**