aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-07-15 16:47:36 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-07-15 16:47:36 +0000
commita758d2cf619ca3b48e6155f11c1a3d9030fae6ec (patch)
tree721f91d627eebf69a167fce9ef4ca7681530b466 /phpBB/posting.php
parent7b5a2485d3765938af3701e0f4017b20610ed3d9 (diff)
downloadforums-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.php2
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']))