Index: kernel/db/db_connection.php =================================================================== --- kernel/db/db_connection.php (revision 15331) +++ kernel/db/db_connection.php (working copy) @@ -1093,7 +1093,8 @@ // set 2nd checkpoint: begin if ( $this->_profileSQLs ) { - $first_cell = count($ret) == 1 && count(current($ret)) == 1 ? current(current($ret)) : null; + $current_element = current($ret); + $first_cell = count($ret) == 1 && count($current_element) == 1 ? current($current_element) : null; if ( strlen($first_cell) > 200 ) { $first_cell = substr($first_cell, 0, 50) . ' ...';