Merge pull request #44410 from nextcloud/fix/fetcher-on-null

fix(AppStore\Fetcher): Ensure `get` returns an array
pull/44017/head
Ferdinand Thiessen 2 months ago committed by GitHub
commit c352f0198b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -181,7 +181,7 @@ abstract class Fetcher {
try {
$responseJson = $this->fetch($ETag, $content, $allowUnstable);
if (empty($responseJson)) {
if (empty($responseJson) || empty($responseJson['data'])) {
return [];
}

Loading…
Cancel
Save