From 0324ec2d46697f83f08b4cbe466f138e87fa6d78 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 6 Mar 2016 23:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= 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 c2125686..4806092a 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -140,7 +140,7 @@ class Validate if (strpos($key, '.')) { list($name1, $name2) = explode('.', $key); } - if ((isset($options['value_fill']) && in_array($key, is_string($options['exists_fill']) ? explode(',', $options['value_fill']) : $options['value_fill']) && '' == $value) + if ((isset($options['value_fill']) && in_array($key, is_string($options['value_fill']) ? explode(',', $options['value_fill']) : $options['value_fill']) && '' == $value) || (isset($options['exists_fill']) && in_array($key, is_string($options['exists_fill']) ? explode(',', $options['exists_fill']) : $options['exists_fill']) && is_null($value))) { // 不满足自动填充条件 return;