From 13f58abe05f72832a7910e43fd20c931d4cc7b0f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 24 Mar 2018 20:03:28 -0400 Subject: [PATCH] Add parameter check in Image::getInfoFromURL --- src/Object/Image.php | 4 ++++ 1 file changed, 4 insertions(+) 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)) { -- 2.39.5