Fixed: ?? didn't work here as bool won't be seen as null
This commit is contained in:
parent
78bf7f187c
commit
eb231bc548
|
@ -247,7 +247,7 @@ class Images
|
|||
$data['size'] = $filesize;
|
||||
}
|
||||
|
||||
return $data ?? [];
|
||||
return is_array($data) ? $data : [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue