From 7a3e55bdb3725665b229f47ff6a5778a6f259969 Mon Sep 17 00:00:00 2001 From: RMcGirr83 Date: Wed, 24 May 2017 12:58:25 -0400 Subject: [ticket/15237] Fix unguarded includes to functions_user https://tracker.phpbb.com/browse/PHPBB3-15237 PHPBB3-15237 --- phpBB/viewonline.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'phpBB/viewonline.php') 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 -- cgit v1.2.1