aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-07-16 11:42:35 +0200
committerGitHub <noreply@github.com>2024-07-16 11:42:35 +0200
commitb010474c78dd2f9bc04a7031939cfd7943c26e0e (patch)
treeafa448119a115275b94a0682536adcc80ac74460 /lib/private
parent18c9f07ade56f61223605d86d22284eeef1f3024 (diff)
downloadnextcloud-server-b010474c78dd2f9bc04a7031939cfd7943c26e0e.tar.gz
nextcloud-server-b010474c78dd2f9bc04a7031939cfd7943c26e0e.zip
fix(appstore): Return an empty array in case of fail
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index 508a5dae8f7..8c678888f86 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -153,6 +153,9 @@ class AppFetcher extends Fetcher {
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
$apps = parent::get($allowPreReleases);
+ if (empty($apps)) {
+ return [];
+ }
$allowList = $this->config->getSystemValue('appsallowlist');
// If the admin specified a allow list, filter apps from the appstore