From 42509c6c5953c709b13279c272e7c35efe57d2a9 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 18 Dec 2005 19:14:26 +0000 Subject: [PATCH] poster_id does not exist (anonymous should be not present too) git-svn-id: file:///svn/phpbb/trunk@5354 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/memberlist.php | 4 ++-- 1 file 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'])) ? '' : '', @@ -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 ); }