This commit is contained in:
2021-02-25 10:16:37 +08:00
parent b73f6b4f85
commit d4ba31706c
+2 -4
View File
@@ -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);