From b010474c78dd2f9bc04a7031939cfd7943c26e0e Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:42:35 +0200 Subject: [PATCH] fix(appstore): Return an empty array in case of fail Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/App/AppStore/Fetcher/AppFetcher.php | 3 +++ 1 file changed, 3 insertions(+) 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