mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
Fix an issue with hidden users showing up on the online list if their
global setting was yes but they had hidden for this session git-svn-id: file:///svn/phpbb/trunk@5350 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1675,7 +1675,7 @@ function page_header($page_title = '')
|
||||
$logged_hidden_online++;
|
||||
}
|
||||
|
||||
if ($row['user_allow_viewonline'] || $auth->acl_get('u_viewonline'))
|
||||
if ( ($row['user_allow_viewonline'] && $row['session_viewonline']) || $auth->acl_get('u_viewonline') )
|
||||
{
|
||||
$user_online_link = ($row['user_type'] <> USER_IGNORE) ? "<a href=\"{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u=" . $row['user_id'] . '">' . $user_online_link . '</a>' : $user_online_link;
|
||||
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
|
||||
|
Reference in New Issue
Block a user