]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-online.php
Cache loader and autopurge rewritten
[mailer.git] / inc / modules / guest / action-online.php
index 5d7ba831d4d0a65166fca0047852496a5002955a..01d79180fe3975b6490d5c67ab22ebbdd5dddb54 100644 (file)
@@ -46,11 +46,11 @@ $result_admins  = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_ad
 
 // Total visitors online
 $total      = SQL_NUMROWS($result_guests) + SQL_NUMROWS($result_members) + SQL_NUMROWS($result_admins);
-if ($_CONFIG['mad_counter'] < $total) {
+if ($_CONFIG['mad_count'] < $total) {
        // Update counter
        UPDATE_CONFIG(array("mad_timestamp", "mad_count"), array(time(), $total));
-       $_CONFIG['mad_counter'] = $total;
-       $_CONFIG['last_mad']    = time();
+       $_CONFIG['mad_count'] = $total;
+       $_CONFIG['last_mad']  = time();
 }
 
 // Put all values in constants for the template