From: Hypolite Petovan Date: Sun, 25 Mar 2018 00:03:28 +0000 (-0400) Subject: Add parameter check in Image::getInfoFromURL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=13f58abe05f72832a7910e43fd20c931d4cc7b0f;p=friendica.git Add parameter check in Image::getInfoFromURL --- diff --git a/src/Object/Image.php b/src/Object/Image.php index 2f4d55dc0a..9692b84715 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -771,6 +771,10 @@ class Image { $data = []; + if (empty($url)) { + return $data; + } + $data = Cache::get($url); if (is_null($data) || !$data || !is_array($data)) {