diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-13 17:26:36 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-13 17:26:36 +0000 |
commit | 9d43df0d537376b2fe9f04f1fb0595b8604348f7 (patch) | |
tree | 8474dd26a079f7c60f61d9a3b2e3f290f809d19f /phpBB/includes | |
parent | d1fd694282e3ebaf2046e3aee6a0d5dd92cb6659 (diff) | |
download | forums-9d43df0d537376b2fe9f04f1fb0595b8604348f7.tar forums-9d43df0d537376b2fe9f04f1fb0595b8604348f7.tar.gz forums-9d43df0d537376b2fe9f04f1fb0595b8604348f7.tar.bz2 forums-9d43df0d537376b2fe9f04f1fb0595b8604348f7.tar.xz forums-9d43df0d537376b2fe9f04f1fb0595b8604348f7.zip |
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
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |