From 1906c2932ffcb42d906b85952fa0bdcfcb78f595 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 24 Apr 2017 13:59:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E8=B7=AF=E7=94=B1?= 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 7b93b1f0..a3001d8f 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -842,7 +842,7 @@ class Route } $method = strtolower($request->method()); // 获取当前请求类型的路由规则 - $rules = self::$rules[$method]; + $rules = isset(self::$rules[$method]) ? self::$rules[$method] : []; // 检测域名部署 if ($checkDomain) { self::checkDomain($request, $rules, $method);