From 044ef6098c925cce9b16be83b680733a5d43129b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 7 May 2016 18:33:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3request=E7=B1=BBdispatch?= =?UTF-8?q?=E6=96=B9=E6=B3=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Request.php b/library/think/Request.php index 8cedb777..5dc13ebd 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -440,7 +440,7 @@ class Request */ public static function dispatch($dispatch = []) { - if (!empty($type)) { + if (!empty($dispatch)) { self::$dispatch = $dispatch; } return self::$dispatch;