From: Roland Häder Date: Mon, 8 Sep 2008 18:42:49 +0000 (+0000) Subject: Fix for online counter... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a90e41c014e7c56ecbbdd3031fab098bf88c9aa;p=mailer.git Fix for online counter... --- 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