6
2
Fork 0
espelhamento de https://github.com/friendica/friendica sincronizado 2025-09-01 21:11:11 +02:00

Return empty array on error (I hope it works this way).

Esse commit está contido em:
Roland Häder 2022-06-22 11:49:54 +02:00
commit feec96cbc4
Assinado por: roland
ID da chave GPG: C82EDE5DDFA0BA77

Ver arquivo

@ -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 ?? [];
}
/**