From 9bb2c9c0d9f3c6769c6981a3af7ec71bf21a7462 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 18 Aug 2016 08:51:04 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Url.php b/library/think/Url.php index d522b90c..a2d5e3d0 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -82,7 +82,7 @@ class Url if (!empty($rule[2])) { $domain = $rule[2]; } - } elseif ($rule && isset($name)) { + } elseif (!empty($rule) && isset($name)) { throw new \InvalidArgumentException('route name not exists:' . $name); } else { // 获取路由别名