diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-07-16 11:42:35 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-17 10:34:43 +0000 |
commit | 803bc2cfc461a284e15593bc5852c1bc874b0fd2 (patch) | |
tree | 57be97e511cf59f9557d29e168788359453abcd8 /lib/private/App | |
parent | f129a88fc2f3d02f492f279bdc527c3bacb79da8 (diff) | |
download | nextcloud-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.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 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 |