This commit is contained in:
2020-11-27 18:44:59 +08:00
parent 5f6a273edd
commit e116ad5446
+2 -2
View File
@@ -79,15 +79,15 @@ trait Condition
if (is_string($where)) {
return sprintf(' WHERE %s', $where);
}
$_tmp = [];
$where = array_filter($where);
foreach ($where as $key => $value) {
if (is_array($value)) {
$value = $this->arrayMap($value);
} else if (!is_numeric($key)) {
$value = $key . '=' . $this->valueEncode($value);
}
if (empty($value)) {
if ($value === null) {
continue;
}
$_tmp[] = $value;