Skip to content

Commit

Permalink
Fix behavior when defaultapp is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Sep 28, 2023
1 parent b11eb9e commit 8049702
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/App/AppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ public function getDefaultAppForUser(?IUser $user = null): string {
// Set fallback to always-enabled files app
$appId = 'files';
$defaultApps = explode(',', $this->config->getSystemValueString('defaultapp', ''));
$defaultApps = array_filter($defaultApps);

$user ??= $this->userSession->getUser();

Expand Down

0 comments on commit 8049702

Please sign in to comment.