modify
This commit is contained in:
@@ -47,11 +47,12 @@ abstract class Condition extends BaseObject
|
||||
*/
|
||||
public function setValue($value): void
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$this->value = array_map(function ($_value) {
|
||||
return is_numeric($_value) ? $_value : '\'' . $_value . '\'';
|
||||
}, $value);
|
||||
} else {
|
||||
$this->value = is_numeric($value) ? $value : '\'' . $value . '\'';
|
||||
if (is_array($this->value)) {
|
||||
$this->value = array_map(function ($value) {
|
||||
return is_numeric($value) ? $value : '\''.$value.'\'';
|
||||
}, $this->value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user