1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 15:17:16 +01:00

Treat moved topics as being non-existent for re-sync of topic counts

git-svn-id: file:///svn/phpbb/trunk@1306 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-11-13 17:26:36 +00:00
parent d1fd694282
commit 9d43df0d53

View File

@ -624,7 +624,8 @@ function sync($type, $id)
$sql = "SELECT COUNT(topic_id) AS total
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id";
WHERE forum_id = $id
AND topic_status <> " . TOPIC_MOVED;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not get topic count", "Error", __LINE__, __FILE__, $sql);