diff options
Diffstat (limited to 'phpBB/ucp.php')
| -rwxr-xr-x | phpBB/ucp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php index b5e124c5ed..fc34c8c0ac 100755 --- a/phpBB/ucp.php +++ b/phpBB/ucp.php @@ -159,7 +159,7 @@ $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { - $which = (time() - $update_time < $row['online_time']) ? 'online' : 'offline'; + $which = (time() - $update_time < $row['online_time'] && $row['viewonline']) ? 'online' : 'offline'; $template->assign_block_vars("friends_{$which}", array( 'U_PROFILE' => "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u=" . $row['user_id'], |
