From c0d65a8eb2709040f43f30272d39c5324abecbd8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 2 Aug 2016 18:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= 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 9091ee9c..857a9933 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -551,7 +551,7 @@ class Validate break; case 'boolean': // 是否为布尔值 - $result = in_array($value, ['true', 'false', 0, 1, true, false]); + $result = in_array($value, [0, 1, true, false]); break; case 'array': // 是否为数组