Browse Source

Merge pull request #46555 from nextcloud/emptyArrayAppStoreFail

fix(appstore): Return an empty array in case of fail
pull/46378/head
Git'Fellow 2 years ago
committed by GitHub
parent
commit
b06ce832d8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      lib/private/App/AppStore/Fetcher/AppFetcher.php

4
lib/private/App/AppStore/Fetcher/AppFetcher.php

@ -153,6 +153,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

Loading…
Cancel
Save