modify
This commit is contained in:
@@ -123,7 +123,11 @@ trait Builder
|
||||
if (empty($where)) return '';
|
||||
if (is_string($where)) return $where;
|
||||
foreach ($where as $key => $value) {
|
||||
$_value = is_string($value) ? $value : $this->conditionMap($value);
|
||||
if (is_string($value) || is_string($key)) {
|
||||
$_value = is_string($key) ? sprintf('%s=\'%s\'', $key, $value) : $value;
|
||||
} else {
|
||||
$_value = $this->conditionMap($value);
|
||||
}
|
||||
|
||||
if (empty($_value)) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user