改名
This commit is contained in:
@@ -20,9 +20,8 @@ class HashCondition extends Condition
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
foreach ($this->value as $key => $value) {
|
foreach ($this->value as $key => $value) {
|
||||||
if ($value === null) {
|
if (is_null($value)) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$array[] = sprintf("%s = '%s'", $key, addslashes($value));
|
$array[] = sprintf("%s = '%s'", $key, addslashes($value));
|
||||||
}
|
}
|
||||||
return implode(' AND ', $array);
|
return implode(' AND ', $array);
|
||||||
|
|||||||
@@ -129,6 +129,8 @@ trait Builder
|
|||||||
if (empty($where)) return '';
|
if (empty($where)) return '';
|
||||||
if (is_string($where)) return $where;
|
if (is_string($where)) return $where;
|
||||||
foreach ($where as $key => $value) {
|
foreach ($where as $key => $value) {
|
||||||
|
if (is_null($value)) continue;
|
||||||
|
|
||||||
$_value = $this->resolveCondition($key, $value, $_tmp);
|
$_value = $this->resolveCondition($key, $value, $_tmp);
|
||||||
|
|
||||||
if (empty($_value)) continue;
|
if (empty($_value)) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user