diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-09-13 09:49:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 09:49:09 +0200 |
commit | dccfb6d68ac7192b1bedcdfdbc077e28fab22605 (patch) | |
tree | 245ab8e19797eb8b88ac97503b0751e3064c32a1 /lib/private/App | |
parent | 8585b053574c0f9cc3d34c1b064688012e060b28 (diff) | |
download | nextcloud-server-dccfb6d68ac7192b1bedcdfdbc077e28fab22605.tar.gz nextcloud-server-dccfb6d68ac7192b1bedcdfdbc077e28fab22605.zip |
fix: check if key is set
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index d2c98c4afc9..5414358250f 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -53,7 +53,7 @@ class AppFetcher extends Fetcher { /** @var mixed[] $response */ $response = parent::fetch($ETag, $content); - if (empty($response) || $response['data'] === null) { + 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 []; } |