// 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