mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 21:54:00 +02:00
[ticket/15237] Fix unguarded includes to functions_user
https://tracker.phpbb.com/browse/PHPBB3-15237 PHPBB3-15237
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user