From 87bb4aeda091c734e3707d2091ee535b9cfd1a65 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 18 Mar 2002 13:44:21 +0000 Subject: [PATCH] Morons have congregated in my head for a moron-party git-svn-id: file:///svn/phpbb/trunk@2307 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 == '' )