From 837e006e7f743567c4dc573316d210fcb35cdb5e 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 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