1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 14:31:19 +02:00

[ticket/13713] Fix priorities

PHPBB3-13713
This commit is contained in:
lavigor
2018-07-22 03:58:00 +03:00
committed by Marc Alexander
parent 6f8467a2fa
commit e616ec025c
6 changed files with 62 additions and 7 deletions

View File

@@ -21,11 +21,14 @@ class team extends base_user
protected function query($keyword, $topic_id)
{
/*
* Select unique names of team members: each name should be selected only once
* regardless of the number of groups the certain user is a member of
*
* For optimization purposes all team members are returned regardless of the keyword
* Names filtering is done on the frontend
* Results will be cached in a single file
*/
$query = $this->db->sql_build_query('SELECT', [
$query = $this->db->sql_build_query('SELECT_DISTINCT', [
'SELECT' => 'u.username_clean, u.username, u.user_id',
'FROM' => [
USERS_TABLE => 'u',