From d5201439cffaffa3a9668a0fc48f82f848a2262b Mon Sep 17 00:00:00 2001 From: quix0r Date: Mon, 8 Sep 2008 18:42:49 +0000 Subject: [PATCH] Fix for online counter... --- inc/libs/surfbar_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/libs/surfbar_functions.php b/inc/libs/surfbar_functions.php index 4c931566ad..560c4897c2 100644 --- a/inc/libs/surfbar_functions.php +++ b/inc/libs/surfbar_functions.php @@ -588,7 +588,7 @@ function SURFBAR_DETERMINE_TOTAL_ONLINE () { global $_CONFIG; // Count all users in surfbar modue and return the value - $result = SQL_QUERY_ESC("SELECT COUNT(id) FROM "._MYSQL_PREFIX."_surfbar_stats WHERE (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_online)) >= %s", + $result = SQL_QUERY_ESC("SELECT COUNT(id) FROM "._MYSQL_PREFIX."_surfbar_stats WHERE (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_online)) <= %s", array($_CONFIG['online_timeout']), __FILE__, __LINE__); // Fetch count -- 2.39.5