From 1f8e91cf113d5b2be6de26b96c92ed1021207c30 Mon Sep 17 00:00:00 2001 From: lavigor Date: Sat, 15 Sep 2018 12:06:31 +0300 Subject: [PATCH] [ticket/13713] Fix SELECT DISTINCT query for team usernames PHPBB3-13713 --- phpBB/phpbb/mention/source/team.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/mention/source/team.php b/phpBB/phpbb/mention/source/team.php index 481fd1a132..4b40d7f224 100644 --- a/phpBB/phpbb/mention/source/team.php +++ b/phpBB/phpbb/mention/source/team.php @@ -37,7 +37,7 @@ class team extends base_user ], 'WHERE' => 'ug.group_id = t.group_id AND ug.user_id = u.user_id AND ug.user_pending = 0 AND ' . $this->db->sql_in_set('u.user_type', [USER_NORMAL, USER_FOUNDER]), - 'ORDER_BY' => 'u.username' + 'ORDER_BY' => 'u.username_clean' ]); return $query; }