From 615d529519492787be82cb2f22498806c6bb952f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 27 Mar 2016 11:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Route.php b/library/think/Route.php index 9b79659f..9de102df 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -600,6 +600,7 @@ class Route foreach ($m2 as $key => $val) { // val中定义了多个变量 if (false !== strpos($val, '<') && preg_match_all('/<(\w+(\??))>/', $val, $matches)) { + $value = []; foreach ($matches[1] as $name) { if (strpos($name, '?')) { $name = substr($name, 0, -1);