aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 291c452845..31c4e92c21 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -542,7 +542,8 @@ else if ( $submit || $confirm )
if ( $mode != 'editpost' )
{
- update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $post_data['poster_id']);
+ $user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
+ update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
if ( $error_msg == '' )