改名
This commit is contained in:
@@ -79,15 +79,15 @@ trait Condition
|
|||||||
if (is_string($where)) {
|
if (is_string($where)) {
|
||||||
return sprintf(' WHERE %s', $where);
|
return sprintf(' WHERE %s', $where);
|
||||||
}
|
}
|
||||||
|
|
||||||
$_tmp = [];
|
$_tmp = [];
|
||||||
|
$where = array_filter($where);
|
||||||
foreach ($where as $key => $value) {
|
foreach ($where as $key => $value) {
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
$value = $this->arrayMap($value);
|
$value = $this->arrayMap($value);
|
||||||
} else if (!is_numeric($key)) {
|
} else if (!is_numeric($key)) {
|
||||||
$value = $key . '=' . $this->valueEncode($value);
|
$value = $key . '=' . $this->valueEncode($value);
|
||||||
}
|
}
|
||||||
if (empty($value)) {
|
if ($value === null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$_tmp[] = $value;
|
$_tmp[] = $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user