Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / admin / db / users_db.inc
index 3e0bce2292aa12323fa0a0a99c2d4a8fc0eb8201..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'");