From c9b7d0897c2a3412abdeb6721702b0093a8533dd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 17 Dec 2006 03:20:23 +0000 Subject: [PATCH] Better way to check for empty params --- Router.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Router.php b/Router.php index eedaa06..e83d58b 100644 --- a/Router.php +++ b/Router.php @@ -115,7 +115,12 @@ class BSRouter continue; } - if ($params["$i"] != '' AND $params["$i"][0] == '+') + if ($params["$i"] == '') + { + continue; + } + + if ($params["$i"][0] == '+') { if (!empty($key)) { -- 2.43.5