aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-06-05 11:57:18 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-06-05 11:57:18 +0200
commit34fb146ab5c5e5c52541a5c8191043a94bfa0cd1 (patch)
treef128434b5609c409deb4c3122dfde729f5526c0a /phpBB/viewonline.php
parentMerge pull request #4833 from javiexin/ticket/15227 (diff)
parentMerge pull request #4840 from rmcgirr83/ticket_15237 (diff)
downloadphpbb-34fb146ab5c5e5c52541a5c8191043a94bfa0cd1.tar.gz
phpbb-34fb146ab5c5e5c52541a5c8191043a94bfa0cd1.tar.bz2
phpbb-34fb146ab5c5e5c52541a5c8191043a94bfa0cd1.zip
Merge branch '3.1.x' into 3.2.x
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 624fe4ca9c..d5ddb0ba13 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -64,7 +64,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