From ebb5b15d12acc340ae84cc4aef1879bec5177b47 Mon Sep 17 00:00:00 2001 From: Samuel Denis-D'Ortun Date: Sun, 12 Apr 2020 13:42:45 -0400 Subject: [PATCH] Update MaintenanceListener.php --- Listener/MaintenanceListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }