1
1
Fork 0

Add parameter check in Image::getInfoFromURL

This commit is contained in:
Hypolite Petovan 2018-03-24 20:03:28 -04:00
parent b8ffa1dec7
commit 13f58abe05

View file

@ -771,6 +771,10 @@ class Image
{ {
$data = []; $data = [];
if (empty($url)) {
return $data;
}
$data = Cache::get($url); $data = Cache::get($url);
if (is_null($data) || !$data || !is_array($data)) { if (is_null($data) || !$data || !is_array($data)) {