Index: trunk/core/kernel/db/db_connection.php =================================================================== diff -u -N -r8815 -r8901 --- trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8815) +++ trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 8901) @@ -402,18 +402,18 @@ } } // set 2nd checkpoint: begin - $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; + $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; - $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows(), $first_cell); - $debugger->profilerAddTotal('sql', 'sql_'.$queryID); + $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows(), $first_cell); + $debugger->profilerAddTotal('sql', 'sql_'.$queryID); $this->Destroy(); // set 2nd checkpoint: end return $ret; } else { // set 2nd checkpoint: begin - $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows()); - $debugger->profilerAddTotal('sql', 'sql_'.$queryID); + $debugger->profileFinish('sql_'.$queryID, null, null, $this->getAffectedRows()); + $debugger->profilerAddTotal('sql', 'sql_'.$queryID); // set 2nd checkpoint: end } $this->showError($sql);