diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-17 12:51:32 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-17 12:51:32 +0000 |
commit | 4962db5f6715210d4e577fa843f82ffe61b47bc4 (patch) | |
tree | bba382a22c3dba0ae7548c62c32348f11e7e7dd5 /phpBB/ucp.php | |
parent | 59ba11f18f9b43fc154018923c20dcc17db8ffa7 (diff) | |
download | forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar.gz forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar.bz2 forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar.xz forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.zip |
- fix some bugs...
git-svn-id: file:///svn/phpbb/trunk@5643 89ea8834-ac86-4346-8a33-228a782c2dd0
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'], |