aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/memberlist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 70028846ce..c017fe2e02 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -1217,7 +1217,7 @@ function show_profile($data)
'POSTS' => ($data['user_posts']) ? $data['user_posts'] : 0,
'WARNINGS' => ($data['user_warnings']) ? $data['user_warnings'] : 0,
- 'ONLINE_IMG' => ($poster_id == ANONYMOUS) ? '' : (($online) ? $user->img('btn_online', 'ONLINE') : $user->img('btn_offline', 'OFFLINE')),
+ 'ONLINE_IMG' => ($user_id == ANONYMOUS) ? '' : (($online) ? $user->img('btn_online', 'ONLINE') : $user->img('btn_offline', 'OFFLINE')),
'RANK_IMG' => $rank_img,
'ICQ_STATUS_IMG'=> (!empty($data['user_icq'])) ? '<img src="http://web.icq.com/whitepages/online?icq=' . $data['user_icq'] . '&amp;img=5" width="18" height="18" border="0" />' : '',
@@ -1236,7 +1236,7 @@ function show_profile($data)
'L_VIEWING_PROFILE' => sprintf($user->lang['VIEWING_PROFILE'], $username),
- 'S_ONLINE' => (intval($data['session_time']) >= time() - ($config['load_online_time'] * 60)) ? true : false
+ 'S_ONLINE' => ($online) ? true : false
);
}