Merged changes from stable branch up to 2.3.23.
[fa-stable.git] / admin / db / users_db.inc
index 7dfd7256a2a23a60fbd08a54a21f4abd97941d5f..8e215a20222f736330edd537fd070fb7cbbe56a5 100644 (file)
@@ -171,9 +171,9 @@ function check_user_activity($id)
 //-----------------------------------------------------------------------------------------------
 function show_users_online()
 {
-       global $show_users_online, $db, $GetText;
-       
-       if (!isset($show_users_online) || $show_users_online == 0 || !defined('TB_PREF') || 
+       global $db, $GetText, $SysPrefs;
+
+       if (!isset($SysPrefs->show_users_online) || $SysPrefs->show_users_online == 0 || !defined('TB_PREF') || 
                !isset($GetText) || !isset($db))
                return "";
        $result = db_query("SHOW TABLES LIKE '".TB_PREF."useronline'"); 
@@ -221,4 +221,3 @@ function show_users_online()
        return "$users ".($users == 1 ? _("user online") : _("users online"));
 
 }
-?>