mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user