aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-07-16 11:42:35 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2024-07-25 20:16:51 +0200
commit837e006e7f743567c4dc573316d210fcb35cdb5e (patch)
treedf17ceaea6783bd42f712ee9326decf7fd3d3be0 /lib/private/App
parente827b86b0974586e4677a0bea152d2f1f9943f26 (diff)
downloadnextcloud-server-837e006e7f743567c4dc573316d210fcb35cdb5e.tar.gz
nextcloud-server-837e006e7f743567c4dc573316d210fcb35cdb5e.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/App')
-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 bb1a0e89484..bade64c969a 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -177,6 +177,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