diff --git a/Database/SqlBuilder.php b/Database/SqlBuilder.php index 481f60e2..face7de4 100644 --- a/Database/SqlBuilder.php +++ b/Database/SqlBuilder.php @@ -44,9 +44,7 @@ class SqlBuilder extends Component return $this->addError('None data update.'); } - var_dump($string); - - $update = 'UPDATE ' . $this->tableName() . ' SET ' . $string . $this->conditionToString(); + $update = 'UPDATE ' . $this->tableName() . ' SET ' . implode(',', $string) . $this->conditionToString(); $update .= $this->builderLimit($this->query); return [$update, $array];