mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
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)
|
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);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->destroy_cache(array_unique($word_texts), $author_ids);
|
$this->destroy_cache(array_unique($word_texts), array_unique($author_ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue