mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #47854 from nextcloud/validAppsFromAppStore
fix(appstore): Ensure returned apps from AppStore are valid
This commit is contained in:
commit
413ba1a718
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,8 @@ class AppFetcher extends Fetcher {
|
|||
/** @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 [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue