From 10646ba2adeae5483bb686ddc4493fd1f893b17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Sun, 17 Oct 2010 16:07:40 -0430 Subject: [PATCH] Removing duplicate assignation of same object that didn't make much sense --- cake/libs/model/datasources/dbo/dbo_mysql.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index 75eb18e80..40bf6c485 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -320,10 +320,6 @@ class DboMysql extends DboSource { * @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; @@ -346,7 +342,7 @@ class DboMysql extends DboSource { * @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;