diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-07-16 11:42:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 11:42:35 +0200 |
commit | b010474c78dd2f9bc04a7031939cfd7943c26e0e (patch) | |
tree | afa448119a115275b94a0682536adcc80ac74460 /lib/private | |
parent | 18c9f07ade56f61223605d86d22284eeef1f3024 (diff) | |
download | nextcloud-server-b010474c78dd2f9bc04a7031939cfd7943c26e0e.tar.gz nextcloud-server-b010474c78dd2f9bc04a7031939cfd7943c26e0e.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')
-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 508a5dae8f7..8c678888f86 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -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 |