mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
5b505892a0
commit
2170cd3a9d
1 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue