From 8ddb3a331c0161586e737f7fcf8440005f3515c6 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 19 Feb 2016 17:29:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E9=AA=8C=E8=AF=81=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=96=B9=E6=B3=95=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=20=E6=94=AF=E6=8C=81=20=E6=95=B0=E7=BB=84=E5=92=8C=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=20true=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index b3f85b76..7459e315 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -1230,7 +1230,7 @@ class Model } } // 验证失败返回错误信息 - return (is_array($result) || true === $result) ? $result : $msg; + return (false !== $result) ? $result : $msg; } /**