1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/10630] Perform array_unique on authors array before creating the query

This is needed to avoid an additional appearance for an author for every
post he made.

PHPBB3-10630
This commit is contained in:
Joas Schilling 2012-02-20 02:14:23 +01:00
parent 4b2690f792
commit afcf9cbc86
2 changed files with 2 additions and 2 deletions

@ -707,7 +707,7 @@ class fulltext_mysql extends search_backend
*/
function index_remove($post_ids, $author_ids, $forum_ids)
{
$this->destroy_cache(array(), $author_ids);
$this->destroy_cache(array(), array_unique($author_ids));
}
/**

@ -1334,7 +1334,7 @@ class fulltext_native extends search_backend
$db->sql_query($sql);
}
$this->destroy_cache(array_unique($word_texts), $author_ids);
$this->destroy_cache(array_unique($word_texts), array_unique($author_ids));
}
/**