chore: oops two fix

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/56170/head
Josh 2025-11-03 13:06:41 +07:00 committed by GitHub
parent 441f18dddc
commit 55c20fe9d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -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) {