Code wasn't updating the topic_replies

git-svn-id: file:///svn/phpbb/trunk@586 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-07-06 18:56:19 +00:00
parent 5b505892a0
commit 2170cd3a9d

View file

@ -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))
{