mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-09 00:55:23 +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:
parent
4b2690f792
commit
afcf9cbc86
@ -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…
x
Reference in New Issue
Block a user