From afe3c78113906494a4b9ff56702759fa23077e41 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 10 Dec 2002 18:26:30 +0000 Subject: [PATCH] Minor update to topic syncing section for updating from early revisions. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3185 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/update_to_204.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/update_to_204.php b/phpBB/update_to_204.php index ddfd1447e2..1488a03162 100644 --- a/phpBB/update_to_204.php +++ b/phpBB/update_to_204.php @@ -660,7 +660,8 @@ switch ( $row['config_value'] ) $sql = "SELECT topic_id, topic_moved_id FROM " . TOPICS_TABLE . " - WHERE topic_moved_id <> 0"; + WHERE topic_moved_id <> 0 + AND topic_status = " . TOPIC_MOVED; $result = _sql($sql, $errored, $error_ary); $topic_ary = array(); @@ -820,6 +821,7 @@ switch ( $row['config_value'] ) } unset($update_list); } + $db->sql_freeresult($result); // Optimize/vacuum analyze the tables where appropriate switch (SQL_LAYER)