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 == '' )