Skip to content

Commit

Permalink
Removed double loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phally committed Nov 4, 2011
1 parent 7b023bc commit 0135534
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cake/libs/model/datasources/dbo_source.php 100755 → 100644
Expand Up @@ -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];
Expand Down

0 comments on commit 0135534

Please sign in to comment.