From 4962db5f6715210d4e577fa843f82ffe61b47bc4 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 17 Mar 2006 12:51:32 +0000 Subject: - fix some bugs... git-svn-id: file:///svn/phpbb/trunk@5643 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/ucp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/ucp.php') 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'], -- cgit v1.2.1