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
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-07-17 10:34:43 +0000
commit803bc2cfc461a284e15593bc5852c1bc874b0fd2 (patch)
tree57be97e511cf59f9557d29e168788359453abcd8 /lib/private/App
parentf129a88fc2f3d02f492f279bdc527c3bacb79da8 (diff)
downloadnextcloud-server-803bc2cfc461a284e15593bc5852c1bc874b0fd2.tar.gz
nextcloud-server-803bc2cfc461a284e15593bc5852c1bc874b0fd2.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 f9fbd05855b..cd8f7c6b4f4 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -185,6 +185,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