Skip to content

Commit

Permalink
Re-use existing local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 26, 2013
1 parent 2931b7d commit cb251c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/ORM/Association/BelongsToMany.php
Expand Up @@ -157,7 +157,7 @@ public function attachTo(Query $query, array $options = []) {

$options = ['conditions' => [$cond]] + compact('includeFields');
$this->target()
->association($this->pivot()->alias())
->association($pivot->alias())
->attachTo($query, $options);
}

Expand Down

0 comments on commit cb251c0

Please sign in to comment.