Changed session gettext to use a global variable instead for smaller footprints in...
[fa-stable.git] / admin / db / users_db.inc
index 221bc77c832d2e4399d82d5a3ae081cb856d6190..267029c96f2c2bd685fbbd60f6b5bd5d316c82de 100644 (file)
@@ -160,10 +160,10 @@ function check_user_activity($id)
 //-----------------------------------------------------------------------------------------------
 function show_users_online()
 {
-       global $show_users_online, $db;
+       global $show_users_online, $db, $GetText;
        
        if (!isset($show_users_online) || $show_users_online == 0 || !defined('TB_PREF') || 
-               !isset($_SESSION['get_text']) || !isset($db))
+               !isset($GetText) || !isset($db))
                return "";
        $result = db_query("SHOW TABLES LIKE '".TB_PREF."useronline'"); 
        if (db_num_rows($result) == 1)