diff --git a/remote.php b/remote.php index 3090bbee6a6..656ec7458fa 100644 --- a/remote.php +++ b/remote.php @@ -58,7 +58,7 @@ function handleException(Exception|Error $e): void { // we shall not log on RemoteException \OCP\Server::get(ITemplateManager::class)->printErrorPage($e->getMessage(), '', $e->getCode()); } else { - if ($ex instanceof ServiceUnavailableException && $e->getCode === 0) { + if ($e instanceof ServiceUnavailableException && $e->getCode() === 0) { $status = 503; } if ($e->getCode() > 0) {