Skip to content
Permalink
Browse files

Removing duplicate assignation of same object that didn't make much s…

…ense
  • Loading branch information...
lorenzo committed Oct 17, 2010
1 parent ee4add9 commit 10646ba2adeae5483bb686ddc4493fd1f893b17b
Showing with 1 addition and 5 deletions.
  1. +1 −5 cake/libs/model/datasources/dbo/dbo_mysql.php
@@ -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;
@@ -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;

0 comments on commit 10646ba

Please sign in to comment.
You can’t perform that action at this time.