New extension added, ext-uberwach rewritten (unfinished), some fixes
[mailer.git] / inc / db / lib-mysql3.php
index 465e0d5b2c790c602bbf58be38eab47c5244cdc9..a5b6d67c78624631f7993732ad1a4034d68f4137 100644 (file)
@@ -119,12 +119,12 @@ Query string:<br />
        } // END - if
 
        // Count DB hits
-       if (!isStatsEntrySet('db_hits_run')) {
+       if (!isStatsEntrySet('db_hits')) {
                // Count in dummy variable
-               setStatsEntry('db_hits_run', 1);
+               setStatsEntry('db_hits', 1);
        } else {
                // Count to config array
-               incrementStatsEntry('db_hits_run');
+               incrementStatsEntry('db_hits');
        }
 
        // Return the result
@@ -252,9 +252,6 @@ function SQL_CLOSE ($F, $L) {
        // Destroy cache
        unset($GLOBALS['sql_link_res']);
 
-       // Move stats
-       incrementStatsEntry('db_hits', getStatsEntry('db_hits_run'));
-
        // Return the result
        return $close;
 }