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

fix(AppStore\Fetcher): Ensure `get` returns an array
This commit is contained in:
Ferdinand Thiessen 2024-03-25 12:19:00 +01:00 committed by GitHub
commit c352f0198b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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