X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fusers_db.inc;h=3d7645cee375d1d0e75ad3a2d6a4efc1a4428d86;hb=67ec1888ea14a50f6df62e0599e50d209e7b0c6c;hp=00acb48e2dc71c1919a2a4c1d3fabf6b48943961;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/admin/db/users_db.inc b/admin/db/users_db.inc index 00acb48e..3d7645ce 100644 --- a/admin/db/users_db.inc +++ b/admin/db/users_db.inc @@ -147,9 +147,10 @@ function check_user_activity($id) //----------------------------------------------------------------------------------------------- function show_users_online() { - global $show_users_online; + global $show_users_online, $db; - if (!isset($show_users_online) || $show_users_online == 0 || !defined('TB_PREF') || !isset($_SESSION['get_text'])) + if (!isset($show_users_online) || $show_users_online == 0 || !defined('TB_PREF') || + !isset($_SESSION['get_text']) || !isset($db)) return ""; $result = db_query("SHOW TABLES LIKE '".TB_PREF."useronline'"); if (db_num_rows($result) == 1)