mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
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>
This commit is contained in:
parent
8585b05357
commit
dccfb6d68a
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 [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue