From 9d43df0d537376b2fe9f04f1fb0595b8604348f7 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 13 Nov 2001 17:26:36 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index af7ecf716c..83850f8b03 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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);