mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 01:40:53 -04:00
fix(appstore): Ensure returned apps from AppStore are valid
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: lint chore: remove space Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: check if response array is null Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> chore: Add log
This commit is contained in:
parent
9561834b96
commit
9c557066bc
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 (empty($response) || $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