mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #46555 from nextcloud/emptyArrayAppStoreFail
fix(appstore): Return an empty array in case of fail
This commit is contained in:
commit
b06ce832d8
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue