From 00425a4c1a667b5ade238886a863343ee0035791 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Tue, 9 Jul 2013 10:52:50 +0200 Subject: [PATCH] [-] FO : fixed bad condition in the dispatcher rules --- classes/Dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Dispatcher.php b/classes/Dispatcher.php index b8da414aa..0d964c71e 100644 --- a/classes/Dispatcher.php +++ b/classes/Dispatcher.php @@ -534,7 +534,7 @@ class DispatcherCore */ public function hasKeyword($route_id, $id_lang, $keyword) { - if (!isset($this->routes[$id_lang]) && !isset($this->routes[$id_lang][$route_id])) + if (!isset($this->routes[$id_lang]) || !isset($this->routes[$id_lang][$route_id])) return false; return preg_match('#\{([^{}]*:)?'.preg_quote($keyword, '#').'(:[^{}]*)?\}#', $this->routes[$id_lang][$route_id]['rule']);