diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 9a5e12d04..fd2cd4f79 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -493,8 +493,7 @@ class DboSource extends DataSource { $count = count($values); for ($i = 0; $i < $count; $i++) { - $set = $this->value($values[$i], $model->getColumnType($fields[$i])); - $valueInsert[] = $set; + $valueInsert[] = $this->value($values[$i], $model->getColumnType($fields[$i])); } if ($this->execute('INSERT INTO ' . $this->fullTableName($model) . ' (' . join(',', $fieldInsert). ') VALUES (' . join(',', $valueInsert) . ')')) {