1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 15:05:43 +02:00

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
This commit is contained in:
Paul S. Owen 2002-04-03 14:38:56 +00:00
parent 32b514a800
commit 6ea42eacfd

View File

@ -439,7 +439,7 @@ function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_i
if ( $row = $db->sql_fetchrow($result) ) 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'];
} }
} }
} }