From 6d4ae5d04f53cbad26c28d91f2a0c10a60df8044 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 12 Sep 2008 16:56:27 +0000 Subject: [PATCH] Fix for mad_counter->mad_count --- inc/databases.php | 2 +- inc/extensions/ext-sql_patches.php | 2 +- inc/modules/guest/action-online.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index a5f1522c60..7198e104ff 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "309"); +define('CURR_SVN_REVISION', "310"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/extensions/ext-sql_patches.php b/inc/extensions/ext-sql_patches.php index 958fc7a7de..5b073eec20 100644 --- a/inc/extensions/ext-sql_patches.php +++ b/inc/extensions/ext-sql_patches.php @@ -244,7 +244,7 @@ PRIMARY KEY(id) case "0.1.8": // SQL queries for v0.1.8 // Update notes (these will be set as task text!) - $UPDATE_NOTES = "mad_counter und last_mad werden nun aus der Datenbank geladen"; + $UPDATE_NOTES = "mad_count und last_mad werden nun aus der Datenbank geladen"; break; case "0.1.9": // SQL queries for v0.1.9 diff --git a/inc/modules/guest/action-online.php b/inc/modules/guest/action-online.php index 5d7ba831d4..01d79180fe 100644 --- a/inc/modules/guest/action-online.php +++ b/inc/modules/guest/action-online.php @@ -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 -- 2.39.5