From d4ba31706cb963a151c2de3a35d4af6c87e55c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Feb 2021 10:16:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Orm/Condition.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Database/Orm/Condition.php b/Database/Orm/Condition.php index 81f2f790..453257ae 100644 --- a/Database/Orm/Condition.php +++ b/Database/Orm/Condition.php @@ -76,10 +76,8 @@ trait Condition private function builderWhere($where): string { $_tmp = []; - if (is_null($where)) { - return ''; - } - if (empty($where) || is_string($where)) return $where; + if (empty($where)) return ''; + if (is_string($where)) return $where; foreach ($where as $key => $value) { $_value = is_string($value) ? $value : $this->conditionMap($value);