diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-09-28 09:22:54 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-09-28 09:22:54 +0200 |
commit | 8049702413f4422ea299733c8f69b852732edcb2 (patch) | |
tree | 11fbd5dc9f605b060e97f061e0ffc4e896c63866 /lib/private/App/AppManager.php | |
parent | b11eb9e6d6551dda57b5b8c65a5666c63c4e02c7 (diff) | |
download | nextcloud-server-8049702413f4422ea299733c8f69b852732edcb2.tar.gz nextcloud-server-8049702413f4422ea299733c8f69b852732edcb2.zip |
Fix behavior when defaultapp is empty
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/App/AppManager.php')
-rw-r--r-- | lib/private/App/AppManager.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 9d07000c6f8..ccbb2143133 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -826,6 +826,7 @@ class AppManager implements IAppManager { // Set fallback to always-enabled files app $appId = 'files'; $defaultApps = explode(',', $this->config->getSystemValueString('defaultapp', '')); + $defaultApps = array_filter($defaultApps); $user ??= $this->userSession->getUser(); |