aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-09-13 09:49:09 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-13 08:56:37 +0000
commit2f6c654336959cf1e79facdb3fcd98fde63d1cc2 (patch)
tree5a9c4040ee5b28c1aebb398c80b42ab5a1f4cf57 /lib
parentd8d2130a04830a2e0d20f3816c3d9050bb841405 (diff)
downloadnextcloud-server-2f6c654336959cf1e79facdb3fcd98fde63d1cc2.tar.gz
nextcloud-server-2f6c654336959cf1e79facdb3fcd98fde63d1cc2.zip
fix: check if key is setbackport/47854/stable28
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')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php2
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 4acdacffaf6..98eda35b3a1 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -85,7 +85,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 [];
}