diff options
author | RMcGirr83 <rmcgirr83@gmail.com> | 2017-05-24 12:58:25 -0400 |
---|---|---|
committer | RMcGirr83 <rmcgirr83@gmail.com> | 2017-05-24 12:58:25 -0400 |
commit | 7a3e55bdb3725665b229f47ff6a5778a6f259969 (patch) | |
tree | aebba203d75a0214ea2287a64ee55fbd5e81022c /phpBB/viewonline.php | |
parent | 03c30d4bc6e6a6d720d3665201885eeee3e23bfc (diff) | |
download | forums-7a3e55bdb3725665b229f47ff6a5778a6f259969.tar forums-7a3e55bdb3725665b229f47ff6a5778a6f259969.tar.gz forums-7a3e55bdb3725665b229f47ff6a5778a6f259969.tar.bz2 forums-7a3e55bdb3725665b229f47ff6a5778a6f259969.tar.xz forums-7a3e55bdb3725665b229f47ff6a5778a6f259969.zip |
[ticket/15237] Fix unguarded includes to functions_user
https://tracker.phpbb.com/browse/PHPBB3-15237
PHPBB3-15237
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r-- | phpBB/viewonline.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 5cb1175528..0a8af2001c 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -60,7 +60,10 @@ $order_by = $sort_key_sql[$sort_key] . ' ' . (($sort_dir == 'a') ? 'ASC' : 'DESC // Whois requested if ($mode == 'whois' && $auth->acl_get('a_') && $session_id) { - include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + if (!function_exists('user_get_id_name')) + { + include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + } $sql = 'SELECT u.user_id, u.username, u.user_type, s.session_ip FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . " s |