Permalink
Browse files

Removed double loop.

  • Loading branch information...
Phally committed Nov 2, 2011
1 parent 7b023bc commit 0135534acc4e92252c1ae919786ffb7c2fb19dc4
Showing with 0 additions and 2 deletions.
  1. +0 −2 cake/libs/model/datasources/dbo_source.php
View
@@ -736,8 +736,6 @@ function create(&$model, $fields = null, $values = null) {
for ($i = 0; $i < $count; $i++) {
$valueInsert[] = $this->value($values[$i], $model->getColumnType($fields[$i]), false);
- }
- for ($i = 0; $i < $count; $i++) {
$fieldInsert[] = $this->name($fields[$i]);
if ($fields[$i] == $model->primaryKey) {
$id = $values[$i];

0 comments on commit 0135534

Please sign in to comment.