mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 03:32:00 -04:00
fix(appstore): Return an empty array in case of fail
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
e827b86b09
commit
837e006e7f
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue