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); }