diff options
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public.php b/public.php index 5954da7e3a0..9f3ffcec5e9 100644 --- a/public.php +++ b/public.php @@ -36,7 +36,7 @@ require_once __DIR__ . '/lib/versioncheck.php'; * @param $service * @return string */ -function resolveService($service) { +function resolveService(string $service): string { $services = [ 'webdav' => 'dav/appinfo/v1/publicwebdav.php', 'dav' => 'dav/appinfo/v2/publicremote.php', @@ -74,7 +74,7 @@ try { $file = resolveService($service); - if (is_null($file)) { + if (!$file) { throw new RemoteException('Path not found', 404); } |