mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
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 = [];
|
$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)) {
|
||||||
|
|
Loading…
Reference in a new issue