diff --git a/src/ErrorPageControllerExtension.php b/src/ErrorPageControllerExtension.php index cc1fc29..ca4119c 100644 --- a/src/ErrorPageControllerExtension.php +++ b/src/ErrorPageControllerExtension.php @@ -38,7 +38,6 @@ protected function onBeforeHTTPError($statusCode, $request, $errorMessage = null private function isAdminController(): bool { - return ($this->owner instanceof LeftAndMain) - || Controller::has_curr() && (Controller::curr() instanceof LeftAndMain); + return ($this->owner instanceof LeftAndMain) || (Controller::curr() instanceof LeftAndMain); } }