aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/ucp.php')
-rwxr-xr-xphpBB/ucp.php2
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&amp;mode=viewprofile&amp;u=" . $row['user_id'],