Fix for online counter...
authorRoland Häder <roland@mxchange.org>
Mon, 8 Sep 2008 18:42:49 +0000 (18:42 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 8 Sep 2008 18:42:49 +0000 (18:42 +0000)
inc/libs/surfbar_functions.php

index 4c93156..560c489 100644 (file)
@@ -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