Return empty array on error (I hope it works this way).
This commit is contained in:
parent
2dd7d465e8
commit
feec96cbc4
1 changed files with 2 additions and 1 deletions
|
@ -206,6 +206,7 @@ class Images
|
|||
|
||||
/**
|
||||
* Gets info from URL uncached
|
||||
*
|
||||
* @param string $url URL
|
||||
* @return array Info array
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
|
@ -246,7 +247,7 @@ class Images
|
|||
$data['size'] = $filesize;
|
||||
}
|
||||
|
||||
return $data;
|
||||
return $data ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue