]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(appstore): Return an empty array in case of fail
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Tue, 16 Jul 2024 09:42:35 +0000 (11:42 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2024 09:42:35 +0000 (11:42 +0200)
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
lib/private/App/AppStore/Fetcher/AppFetcher.php

index 508a5dae8f7c4ede21cb9cb73f0d69bcea3629d0..8c678888f868bfc1856c4fb2a8d9d26d259bfd30 100644 (file)
@@ -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