From 80fe2515e6add5532f0860490c02da4e36e85060 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 23 Dec 2017 10:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BBuilder=E7=B1=BBparseData?= =?UTF-8?q?=E5=AF=B9=E7=A9=BA=E6=95=B0=E7=BB=84=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index 0fe0b562..4ad50fef 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -110,7 +110,7 @@ abstract class Builder } } elseif (is_null($val)) { $result[$item] = 'NULL'; - } elseif (is_array($val)) { + } elseif (is_array($val) && !empty($val)) { switch ($val[0]) { case 'exp': $result[$item] = $val[1];