1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

some arrangements...

git-svn-id: file:///svn/phpbb/trunk@3883 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-04-18 13:07:19 +00:00
parent 25015ecc0b
commit 2bd1ced339
8 changed files with 347 additions and 499 deletions

View File

@@ -278,7 +278,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = TRUE)
}
if (!count($where_ids))
{
return;
return false;
}
$post_ids = $topic_ids = $forum_ids = array();
@@ -297,7 +297,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = TRUE)
if (!count($post_ids))
{
return;
return false;
}
$where_sql = ' WHERE post_id IN (' . implode(', ', $post_ids) . ')';
@@ -309,6 +309,8 @@ function delete_posts($where_type, $where_ids, $auto_sync = TRUE)
$db->sql_query('DELETE FROM ' . SEARCH_MATCH_TABLE . $where_sql);
$db->sql_transaction('commit');
delete_attachment($post_ids);
if ($auto_sync)
{
sync('reported', 'topic_id', $topic_ids);