diff options
author | Nils Adermann <naderman@naderman.de> | 2006-01-21 22:57:42 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-01-21 22:57:42 +0000 |
commit | 7de53b46ec192c66192f3ebcd6123c2c3dbecb6f (patch) | |
tree | e9bc358c5840c795bb35711182a978c1e9ef82c2 /phpBB/includes/functions_admin.php | |
parent | 133ce52d3b7fb4c653ac7195d681e0201c1cf38d (diff) | |
download | forums-7de53b46ec192c66192f3ebcd6123c2c3dbecb6f.tar forums-7de53b46ec192c66192f3ebcd6123c2c3dbecb6f.tar.gz forums-7de53b46ec192c66192f3ebcd6123c2c3dbecb6f.tar.bz2 forums-7de53b46ec192c66192f3ebcd6123c2c3dbecb6f.tar.xz forums-7de53b46ec192c66192f3ebcd6123c2c3dbecb6f.zip |
- search deals with global topics
- fixed some other search related bugs
git-svn-id: file:///svn/phpbb/trunk@5482 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index f58dfe95fa..980880874d 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -521,7 +521,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true) } $post_ids = $topic_ids = $forum_ids = array(); - $sql = 'SELECT post_id, topic_id, forum_id + $sql = 'SELECT post_id, poster_id, topic_id, forum_id FROM ' . POSTS_TABLE . " WHERE $where_type " . ((!is_array($where_ids)) ? "= $where_ids" : 'IN (' . implode(', ', $where_ids) . ')'); $result = $db->sql_query($sql); @@ -529,6 +529,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true) while ($row = $db->sql_fetchrow($result)) { $post_ids[] = $row['post_id']; + $poster_ids[] = $row['poster_id']; $topic_ids[] = $row['topic_id']; $forum_ids[] = $row['forum_id']; } @@ -570,7 +571,7 @@ function delete_posts($where_type, $where_ids, $auto_sync = true) trigger_error($error); } - $search->index_remove($where_ids); + $search->index_remove($post_ids, $poster_ids); delete_attachments('post', $post_ids, false); |