diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2003-07-15 16:47:36 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-07-15 16:47:36 +0000 |
| commit | a758d2cf619ca3b48e6155f11c1a3d9030fae6ec (patch) | |
| tree | 721f91d627eebf69a167fce9ef4ca7681530b466 /phpBB/posting.php | |
| parent | 7b5a2485d3765938af3701e0f4017b20610ed3d9 (diff) | |
| download | forums-a758d2cf619ca3b48e6155f11c1a3d9030fae6ec.tar forums-a758d2cf619ca3b48e6155f11c1a3d9030fae6ec.tar.gz forums-a758d2cf619ca3b48e6155f11c1a3d9030fae6ec.tar.bz2 forums-a758d2cf619ca3b48e6155f11c1a3d9030fae6ec.tar.xz forums-a758d2cf619ca3b48e6155f11c1a3d9030fae6ec.zip | |
small stat_username fix... sometimes the last poster name was not displayed correctly, this commit will fix this hopefully. hmm... have to think about a cleaner method of handling anonymous users...
git-svn-id: file:///svn/phpbb/trunk@4267 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 065c35bd6f..f8d478994e 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1162,7 +1162,7 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_ $poster_id = ($mode == 'edit') ? $data['poster_id'] : (int) $user->data['user_id']; $post_username = (($mode == 'edit' && $username != '' && $data['poster_id'] == ANONYMOUS) || ($mode != 'edit' && $user->data['user_id'] == ANONYMOUS)) ? stripslashes($username) : ''; - $stat_username = ($username) ? stripslashes($username) : (($user->data['user_id'] == ANONYMOUS) ? '' : stripslashes($user->data['username'])); + $stat_username = ($mode != 'edit') ? (($user->data['user_id'] == ANONYMOUS && !empty($username)) ? stripslashes($username) : stripslashes($user->data['username'])) : (($username) ? stripslashes($username) : ''); // Initial Topic table info if ($mode == 'post' || ($mode == 'edit' && $data['topic_first_post_id'] == $data['post_id'])) |
