X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fdb%2Fusers_db.inc;h=8e215a20222f736330edd537fd070fb7cbbe56a5;hb=17b390efcf904072b02ec866b2a427490471a260;hp=3e0bce2292aa12323fa0a0a99c2d4a8fc0eb8201;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/admin/db/users_db.inc b/admin/db/users_db.inc index 3e0bce22..8e215a20 100644 --- a/admin/db/users_db.inc +++ b/admin/db/users_db.inc @@ -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'");