aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-07-06 18:56:19 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-07-06 18:56:19 +0000
commit2170cd3a9dc06ab98fa47c71a227170be37c8752 (patch)
tree3d7d17b95b4d894c2a3fa0b6aa3ab5fdda2bbf73 /phpBB
parent5b505892a0d0eb127c8bbf1ff020b4fb15e75c03 (diff)
downloadforums-2170cd3a9dc06ab98fa47c71a227170be37c8752.tar
forums-2170cd3a9dc06ab98fa47c71a227170be37c8752.tar.gz
forums-2170cd3a9dc06ab98fa47c71a227170be37c8752.tar.bz2
forums-2170cd3a9dc06ab98fa47c71a227170be37c8752.tar.xz
forums-2170cd3a9dc06ab98fa47c71a227170be37c8752.zip
Code wasn't updating the topic_replies
git-svn-id: file:///svn/phpbb/trunk@586 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 0d0ddd12d5..d22b388e7d 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -319,8 +319,12 @@ if($mode == "newtopic" || $mode == "reply")
if($db->sql_query($sql))
{
$sql = "UPDATE " . TOPICS_TABLE . "
- SET topic_last_post_id = $new_post_id
- WHERE topic_id = $new_topic_id";
+ SET topic_last_post_id = $new_post_id";
+ if($mode == "reply")
+ {
+ $sql .= ", topic_replies = topic_replies + 1 ";
+ }
+ $sql .= " WHERE topic_id = $new_topic_id";
if($db->sql_query($sql))
{