From 743bffb381b2c7e6b9c9e5600e7c7f86e3af1a22 Mon Sep 17 00:00:00 2001 From: huangdijia Date: Tue, 22 Dec 2015 13:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E7=9A=84Notice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/route.php b/library/think/route.php index 497ab878..88d3cc94 100644 --- a/library/think/route.php +++ b/library/think/route.php @@ -311,7 +311,7 @@ class Route $rule = array_shift($val); } // 单项路由 - $route = $val['route']; + $route = !empty($val['route'])?$val['route']:''; if (0 === strpos($rule, '/') && preg_match($rule, $url, $matches)) { return self::checkRegex($route, $url, $matches); } else {