Index: branches/RC/core/kernel/db/db_connection.php =================================================================== diff -u -N -r10459 -r10491 --- branches/RC/core/kernel/db/db_connection.php (.../db_connection.php) (revision 10459) +++ branches/RC/core/kernel/db/db_connection.php (.../db_connection.php) (revision 10491) @@ -348,7 +348,9 @@ function Query($sql, $key_field = null, $no_debug = false) { $this->lastQuery = $sql; - $this->_queryCount++; + if (!$no_debug) { + $this->_queryCount++; + } /*if (!array_key_exists($sql, $this->_queryLog)) { $this->_queryLog[$sql] = 1;