diff options
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index f9fbd05855b..3f7f5e0a3bd 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -185,6 +185,10 @@ class AppFetcher extends Fetcher { $allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git'; $apps = parent::get($allowPreReleases); + if (empty($apps)) { + $this->logger->warning('Could not get apps from the appstore', ['app' => 'appstoreFetcher']); + return []; + } $allowList = $this->config->getSystemValue('appsallowlist'); // If the admin specified a allow list, filter apps from the appstore |