diff --git a/remote.php b/remote.php index 0a3bc1b18be..c38c4940b4c 100644 --- a/remote.php +++ b/remote.php @@ -38,11 +38,8 @@ function resolveService(string $service): string { 'files' => 'dav/appinfo/v1/webdav.php', 'direct' => 'dav/appinfo/v2/direct.php', ]; - if (isset($services[$service])) { - return $services[$service]; - } - - return Server::get(IConfig::class)->getAppValue('core', 'remote_' . $service); + $file = $services[$service] ?? ''; + return $file; } try {