More places rewritten to use incrementConfigEntry()
[mailer.git] / inc / db / lib-mysql3.php
index 3d7f11ca3e9f97e5194904cc4360ee904a6f5a59..fe37cb669966e3f80c45fd4db05c86251d590f31 100644 (file)
@@ -64,8 +64,7 @@ Query string:<br />
        $_CONFIG['db_last_query'] = $sql_string;
 
        // Count this query
-       if (getConfig('sql_count') == null) $_CONFIG['sql_count'] = 0;
-       $_CONFIG['sql_count']++;
+       incrementConfigEntry('sql_count');
 
        // Debug output
        //* DEBUG: */ print "Query=<pre>".$sql_string."</pre>, affected=<b>".SQL_AFFECTEDROWS()."</b>, numrows=<b>".SQL_NUMROWS($result)."</b><br />\n";