From 7bc05c5e24ca632f3aa5dfd1fe1e6bd145f9d34c Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 29 Apr 2006 01:18:57 +0000 Subject: - fixing some bugs, containing fixes for anonymous username displays, eaccelerator issue, permission trace and a few smaller bugs. git-svn-id: file:///svn/phpbb/trunk@5858 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_posting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions_posting.php') diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 03f1c962ee..904a56d090 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -810,10 +810,10 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id $poster = $row['username']; // Handle anon users posting with usernames - if ($poster_id == ANONYMOUS && $row['post_username']) + if ($poster_id == ANONYMOUS) { - $poster = $row['post_username']; - $poster_rank = $user->lang['GUEST']; + $poster = ($row['post_username']) ? $row['post_username'] : $user->lang['GUEST']; + $poster_rank = ($row['post_username']) ? $user->lang['GUEST'] : ''; } $post_subject = $row['post_subject']; -- cgit v1.2.1