Skip to content

Commit

Permalink
Merge pull request #47935 from nextcloud/backport/47854/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(appstore): Ensure returned apps from AppStore are valid
  • Loading branch information
skjnldsv committed Sep 15, 2024
2 parents 5d548e6 + 2f6c654 commit 1e0ecc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/App/AppStore/Fetcher/AppFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ protected function fetch($ETag, $content, $allowUnstable = false) {
/** @var mixed[] $response */
$response = parent::fetch($ETag, $content);

if (empty($response)) {
if (!isset($response['data']) || $response['data'] === null) {
$this->logger->warning('Response from appstore is invalid, apps could not be retrieved. Try again later.', ['app' => 'appstoreFetcher']);
return [];
}

Expand Down

0 comments on commit 1e0ecc4

Please sign in to comment.