diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-04-18 13:07:19 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-04-18 13:07:19 +0000 |
commit | 2bd1ced3396c0eed0d05e8510de5cef691fd9321 (patch) | |
tree | bc9d2bbc4d2a482658c13bf563afe8a06dddab2a /phpBB/includes/functions_admin.php | |
parent | 25015ecc0b27945aebde5235a93c125a3f3984d9 (diff) | |
download | forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar.gz forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar.bz2 forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar.xz forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.zip |
some arrangements...
git-svn-id: file:///svn/phpbb/trunk@3883 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index bfae85bd92..66d3b182a2 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -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); |