aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-18 13:44:21 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-18 13:44:21 +0000
commit87bb4aeda091c734e3707d2091ee535b9cfd1a65 (patch)
tree4d058614784cb295410f5e0c851351ab97a31fd5 /phpBB
parente1ab45d3c9fbfc77df8ac40b48a728777e167fb7 (diff)
downloadforums-87bb4aeda091c734e3707d2091ee535b9cfd1a65.tar
forums-87bb4aeda091c734e3707d2091ee535b9cfd1a65.tar.gz
forums-87bb4aeda091c734e3707d2091ee535b9cfd1a65.tar.bz2
forums-87bb4aeda091c734e3707d2091ee535b9cfd1a65.tar.xz
forums-87bb4aeda091c734e3707d2091ee535b9cfd1a65.zip
Morons have congregated in my head for a moron-party
git-svn-id: file:///svn/phpbb/trunk@2307 89ea8834-ac86-4346-8a33-228a782c2dd0
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 == '' )