From 350b1bda1a2d567db8b7adaa62f81bae439eec55 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Jul 2016 10:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/think/Url.php b/library/think/Url.php index e7e06a4b..736804d8 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -269,10 +269,9 @@ class Url foreach ($rules as $group => $val) { list($rule, $route, $vars, $option, $pattern) = $val; if (is_array($rule)) { - foreach ($rule as $key => $rule_item) { - list($key, $route, $var, $option, $pattern) = $rule_item; - - $param = []; + foreach ($rule as $key => $val) { + list($key, $route, $var, $option, $pattern) = $val; + $param = []; if (is_array($route)) { $route = implode('\\', $route); } elseif ($route instanceof \Closure) {