X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FImages.php;h=eb1e8c4375a491ca9f2ca7107082e52194cd5199;hb=fe442683efb8b75394d7df041716c47c81b05fbc;hp=c36ce26899886c446857d70df7c86c37433ae54b;hpb=feec96cbc466ea9ced2745306ef604cfd9acf165;p=friendica.git diff --git a/src/Util/Images.php b/src/Util/Images.php index c36ce26899..eb1e8c4375 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -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 */ @@ -207,7 +207,7 @@ class Images /** * Gets info from URL uncached * - * @param string $url URL + * @param string $url * @return array Info array * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ @@ -247,7 +247,7 @@ class Images $data['size'] = $filesize; } - return $data ?? []; + return is_array($data) ? $data : []; } /**