From 7aff11c165c09839cfe45981bd74ba62663c0756 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 21 Mar 2016 16:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=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, 2 insertions(+) diff --git a/library/think/Validate.php b/library/think/Validate.php index 7157b7d0..ebae5f63 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -338,6 +338,8 @@ class Validate $callback = isset($this->type[$type]) ? $this->type[$type] : [$this, $type]; // 验证数据 $result = call_user_func_array($callback, [$value, $rule, &$data, $field]); + } else { + $result = true; } }