Fix behavior when defaultapp is empty

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-09-28 09:22:54 +02:00
parent b11eb9e6d6
commit 8049702413
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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();