]> git.mxchange.org Git - mailer.git/commitdiff
Fix for broken counter
authorRoland Häder <roland@mxchange.org>
Wed, 24 Oct 2012 23:30:18 +0000 (23:30 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 24 Oct 2012 23:30:18 +0000 (23:30 +0000)
inc/daily/daily_surfbar.php

index a0d1af6299d874f54404c5abebaf996357142e99..495f0b0fb7f2e2cb8281ab70503fc68cecd563bc 100644 (file)
@@ -49,10 +49,13 @@ if (!defined('__SECURITY')) {
 // Debug line
 //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset started.');
 
+// Get value
+$counter = getConfig('surfbar_daily_counter');
+
 // Reset surfbar counter
-updateConfiguration(array('surfbar_daily_counter', 'surfbar_yester_counter'), array(0, getConfig('surfbar_daily_counter')));
-setConfigEntry('surfbar_yester_counter', getConfig('surfbar_daily_counter'));
+updateConfiguration(array('surfbar_daily_counter', 'surfbar_yester_counter'), array(0, $counter));
 setConfigEntry('surfbar_daily_counter' , 0);
+setConfigEntry('surfbar_yester_counter', $counter);
 
 // Debug line
 //* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended.');