diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-03 14:38:56 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-03 14:38:56 +0000 |
commit | 6ea42eacfd47f49c5b845f5c0ef7f0c360577989 (patch) | |
tree | 48b5210c6629a6d5476ca867129acc709d8499e7 | |
parent | 32b514a8006520d2159b654cd017d2d4471104fe (diff) | |
download | forums-6ea42eacfd47f49c5b845f5c0ef7f0c360577989.tar forums-6ea42eacfd47f49c5b845f5c0ef7f0c360577989.tar.gz forums-6ea42eacfd47f49c5b845f5c0ef7f0c360577989.tar.bz2 forums-6ea42eacfd47f49c5b845f5c0ef7f0c360577989.tar.xz forums-6ea42eacfd47f49c5b845f5c0ef7f0c360577989.zip |
Minor error in stats updating when deleting first post of a topic ... topic replies was not decremented
git-svn-id: file:///svn/phpbb/trunk@2468 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/functions_post.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_post.php b/phpBB/includes/functions_post.php index 03daee23fe..3d5e8e6b24 100644 --- a/phpBB/includes/functions_post.php +++ b/phpBB/includes/functions_post.php @@ -439,7 +439,7 @@ function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_i if ( $row = $db->sql_fetchrow($result) ) { - $topic_update_sql = 'topic_first_post_id = ' . $row['post_id']; + $topic_update_sql = 'topic_replies = topic_replies - 1, topic_first_post_id = ' . $row['post_id']; } } } |