Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(appstore): Return an empty array in case of fail
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored and AndyScherzinger committed Jul 25, 2024
commit 837e006e7f743567c4dc573316d210fcb35cdb5e
3 changes: 3 additions & 0 deletions lib/private/App/AppStore/Fetcher/AppFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ public function get($allowUnstable = false) {
$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
Expand Down