git-svn-id: file:///svn/phpbb/trunk@1756 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-12-31 21:59:34 +00:00
parent 80b31fa3ab
commit 2f32f10343

View file

@ -834,6 +834,8 @@ if( !empty($next) )
$post_total = $db->sql_numrows($result); $post_total = $db->sql_numrows($result);
if( $post_total )
{
$post_id_ary = array(); $post_id_ary = array();
while( $row = $db->sql_fetchrow($result) ) while( $row = $db->sql_fetchrow($result) )
{ {
@ -847,6 +849,7 @@ if( !empty($next) )
$sql = "DELETE FROM " . POSTS_TEXT_TABLE . " $sql = "DELETE FROM " . POSTS_TEXT_TABLE . "
WHERE post_id IN (" . implode(", ", $post_id_ary) . ")"; WHERE post_id IN (" . implode(", ", $post_id_ary) . ")";
query($sql, "Couldn't update posts to remove deleted user poster_id values"); query($sql, "Couldn't update posts to remove deleted user poster_id values");
}
echo "Removed $post_total posts ... Done<br />\n"; echo "Removed $post_total posts ... Done<br />\n";
end_step('convert_users'); end_step('convert_users');