]> git.mxchange.org Git - friendica.git/commitdiff
Add parameter check in Image::getInfoFromURL
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 25 Mar 2018 00:03:28 +0000 (20:03 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 25 Mar 2018 00:03:28 +0000 (20:03 -0400)
src/Object/Image.php

index 2f4d55dc0ac15c3a03d407f36c59bc67abbd1a1b..9692b84715c1d0e47db33de116c2e72ddd248a02 100644 (file)
@@ -771,6 +771,10 @@ class Image
        {
                $data = [];
 
+               if (empty($url)) {
+                       return $data;
+               }
+
                $data = Cache::get($url);
 
                if (is_null($data) || !$data || !is_array($data)) {