diff --git a/Listener/MaintenanceListener.php b/Listener/MaintenanceListener.php index c84a947..013973b 100644 --- a/Listener/MaintenanceListener.php +++ b/Listener/MaintenanceListener.php @@ -194,7 +194,7 @@ public function onKernelRequest(GetResponseEvent $event) } $route = $request->get('_route'); - if (null !== $this->route && preg_match('{'.$this->route.'}', $route) || (true === $this->debug && '_' === $route[0])) { + if ($route === null || null !== $this->route && preg_match('{'.$this->route.'}', $route) || (true === $this->debug && '_' === $route[0])) { return; }