Add parameter check in Image::getInfoFromURL
This commit is contained in:
parent
b8ffa1dec7
commit
13f58abe05
1 changed files with 4 additions and 0 deletions
|
@ -771,6 +771,10 @@ class Image
|
|||
{
|
||||
$data = [];
|
||||
|
||||
if (empty($url)) {
|
||||
return $data;
|
||||
}
|
||||
|
||||
$data = Cache::get($url);
|
||||
|
||||
if (is_null($data) || !$data || !is_array($data)) {
|
||||
|
|
Loading…
Reference in a new issue