diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-07-16 11:42:35 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-07-25 20:16:51 +0200 |
commit | 837e006e7f743567c4dc573316d210fcb35cdb5e (patch) | |
tree | df17ceaea6783bd42f712ee9326decf7fd3d3be0 /lib/private/App | |
parent | e827b86b0974586e4677a0bea152d2f1f9943f26 (diff) | |
download | nextcloud-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.php | 3 |
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 |