aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-07-19 17:52:02 +0200
committerGitHub <noreply@github.com>2024-07-19 17:52:02 +0200
commit3aef5ac05cb1db526ab580d25ada81bcca08a5d3 (patch)
tree6867e12cf2e7552e5dd988e11db2545660e61936
parent71f4e01a5d184db48f730d4a260b6810766c608b (diff)
parente4a67f271e302c56528ab44408caf37758da9530 (diff)
downloadnextcloud-server-3aef5ac05cb1db526ab580d25ada81bcca08a5d3.tar.gz
nextcloud-server-3aef5ac05cb1db526ab580d25ada81bcca08a5d3.zip
Merge pull request #46577 from nextcloud/backport/46555/stable28
[stable28] fix(appstore): Return an empty array in case of fail
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index f9fbd05855b..3f7f5e0a3bd 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -185,6 +185,10 @@ class AppFetcher extends Fetcher {
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
$apps = parent::get($allowPreReleases);
+ if (empty($apps)) {
+ $this->logger->warning('Could not get apps from the appstore', ['app' => 'appstoreFetcher']);
+ return [];
+ }
$allowList = $this->config->getSystemValue('appsallowlist');
// If the admin specified a allow list, filter apps from the appstore