mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
cd1a39111b
commit
731f67872b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue