]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/surfbar_functions.php
Script rewritten to setConfigEntry(), getConfig() and incrementConfigEntry()
[mailer.git] / inc / libs / surfbar_functions.php
index d981c7bf56f8ca977ca00cd0bec593dc459f9557..2dffd31ac940d5a143cec34c20e9a18604eb7e1e 100644 (file)
@@ -1048,10 +1048,10 @@ function SURFBAR_UPDATE_INSERT_STATS_RECORD () {
        } // END - if
 
        // Update total/daily/weekly/monthly counter
-       $_CONFIG['surfbar_total_counter']++;
-       $_CONFIG['surfbar_daily_counter']++;
-       $_CONFIG['surfbar_weekly_counter']++;
-       $_CONFIG['surfbar_monthly_counter']++;
+       incrementConfigEntry('surfbar_total_counter');
+       incrementConfigEntry('surfbar_daily_counter');
+       incrementConfigEntry('surfbar_weekly_counter');
+       incrementConfigEntry('surfbar_monthly_counter');
 
        // Update config as well
        UPDATE_CONFIG(array("surfbar_total_counter", "surfbar_daily_counter", "surfbar_weekly_counter", "surfbar_monthly_counter"), array(1,1,1,1), "+");