mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
Fixed bug #498191
git-svn-id: file:///svn/phpbb/trunk@1756 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -834,20 +834,23 @@ if( !empty($next) )
|
||||
|
||||
$post_total = $db->sql_numrows($result);
|
||||
|
||||
$post_id_ary = array();
|
||||
while( $row = $db->sql_fetchrow($result) )
|
||||
if( $post_total )
|
||||
{
|
||||
$post_id_ary[] = $row['post_id'];
|
||||
$post_id_ary = array();
|
||||
while( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
$post_id_ary[] = $row['post_id'];
|
||||
}
|
||||
|
||||
$sql = "DELETE FROM " . POSTS_TABLE . "
|
||||
WHERE post_id IN (" . implode(", ", $post_id_ary) . ")";
|
||||
query($sql, "Couldn't update posts to remove deleted user poster_id values");
|
||||
|
||||
$sql = "DELETE FROM " . POSTS_TEXT_TABLE . "
|
||||
WHERE post_id IN (" . implode(", ", $post_id_ary) . ")";
|
||||
query($sql, "Couldn't update posts to remove deleted user poster_id values");
|
||||
}
|
||||
|
||||
$sql = "DELETE FROM " . POSTS_TABLE . "
|
||||
WHERE post_id IN (" . implode(", ", $post_id_ary) . ")";
|
||||
query($sql, "Couldn't update posts to remove deleted user poster_id values");
|
||||
|
||||
$sql = "DELETE FROM " . POSTS_TEXT_TABLE . "
|
||||
WHERE post_id IN (" . implode(", ", $post_id_ary) . ")";
|
||||
query($sql, "Couldn't update posts to remove deleted user poster_id values");
|
||||
|
||||
echo "Removed $post_total posts ... Done<br />\n";
|
||||
end_step('convert_users');
|
||||
|
||||
|
Reference in New Issue
Block a user