From 7627811cf5ba4d72ffbc75858e324ff8d335963b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 21 Jun 2016 10:32:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3query=E7=B1=BB=E7=9A=84find?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 18c65adf..de14fed8 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1801,7 +1801,7 @@ class Query // 分析查询表达式 $options = $this->parseExpress(); - if (!empty($data) || 0 == $data) { + if (!empty($data) || 0 === $data) { // AR模式分析主键条件 $this->parsePkWhere($data, $options); }