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/47937/head
Git'Fellow 2024-09-13 09:49:09 +07:00 committed by Andy Scherzinger
parent 9c557066bc
commit eb95e40d8d
1 changed files with 1 additions and 1 deletions

@ -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 [];
}