From abdabda157d51d0641723594fe1f2148efe9a191 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Mon, 8 Sep 2014 16:41:56 +0200 Subject: Remove useless condition. --- routers/router.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'routers/router.php') diff --git a/routers/router.php b/routers/router.php index f715905..b436849 100644 --- a/routers/router.php +++ b/routers/router.php @@ -52,14 +52,12 @@ abstract class Router { foreach (preg_split("/((\r?\n)|(\r\n?))/", $output) as $line) { $valid = true; - if (isset($config['filters'])) { - foreach ($config['filters'] as $filter) { - // Line has been marked as invalid - // Or filtered based on the configuration - if (!$valid || (preg_match($filter, $line) === 1)) { - $valid = false; - break; - } + foreach ($config['filters'] as $filter) { + // Line has been marked as invalid + // Or filtered based on the configuration + if (!$valid || (preg_match($filter, $line) === 1)) { + $valid = false; + break; } } -- cgit v1.2.3