修正request类dispatch方法bug

This commit is contained in:
thinkphp
2016-05-07 18:33:30 +08:00
parent 3b3751f3d5
commit 044ef6098c

View File

@@ -440,7 +440,7 @@ class Request
*/ */
public static function dispatch($dispatch = []) public static function dispatch($dispatch = [])
{ {
if (!empty($type)) { if (!empty($dispatch)) {
self::$dispatch = $dispatch; self::$dispatch = $dispatch;
} }
return self::$dispatch; return self::$dispatch;