Skip to content

Commit

Permalink
Removing duplicate assignation of same object that didn't make much s…
Browse files Browse the repository at this point in the history
…ense
  • Loading branch information
lorenzo committed Oct 17, 2010
1 parent ee4add9 commit 10646ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cake/libs/model/datasources/dbo/dbo_mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@ function lastInsertId($source = null) {
* @param PDOStatement $results
*/
function resultSet($results) {
//if (isset($this->results) && is_resource($this->results) && $this->results != $results) {
// mysql_free_result($this->results);
//}
$this->results = $results;
$this->map = array();
$numFields = $results->columnCount();
$index = 0;
Expand All @@ -346,7 +342,7 @@ function resultSet($results) {
* @return mixed array with results fetched and mapped to column names or false if there is no results left to fetch
*/
function fetchResult() {
if ($row = $this->results->fetch()) {
if ($row = $this->_result->fetch()) {
$resultRow = array();
foreach ($this->map as $col => $meta) {
list($table, $column) = $meta;
Expand Down

0 comments on commit 10646ba

Please sign in to comment.