From 5398a989bd3b18a07494315bd5de41005880b75d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 25 Mar 2016 18:33:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3validate=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E5=8F=98=E9=87=8F=E6=9C=AA=E5=AE=9A=E4=B9=89=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index ed34bb95..fd264b99 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -498,7 +498,7 @@ class Validate default: if (isset(self::$type[$rule])) { // 注册的验证规则 - $result = call_user_func_array(self::$type[$rule], [$value, &$data]); + $result = call_user_func_array(self::$type[$rule], [$value]); } else { // 正则验证 $result = $this->regex($value, $rule);