Skip to content

Commit

Permalink
Less one var.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Feb 25, 2011
1 parent 6e14fa8 commit 5ab5197
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cake/libs/model/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -2171,8 +2171,7 @@ public function find($type = 'first', $query = array()) {
}
}

$db = $this->getDataSource();
$results = $db->read($this, $query);
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();

if ($query['callbacks'] === true || $query['callbacks'] === 'after') {
Expand Down

0 comments on commit 5ab5197

Please sign in to comment.