mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing duplicate assignation of same object that didn't make much sense
This commit is contained in:
parent
ee4add9c32
commit
10646ba2ad
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue