poster_id does not exist (anonymous should be not present too)

git-svn-id: file:///svn/phpbb/trunk@5354 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2005-12-18 19:14:26 +00:00
parent 46a8ebfe47
commit 42509c6c59

View file

@ -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
);
}