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>
pull/47854/head
Git'Fellow 8 months ago committed by GitHub
parent 8585b05357
commit dccfb6d68a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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 [];
}

Loading…
Cancel
Save