mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-19 09:48:53 +00:00
Added grouping by user_id to the team leader list query
git-svn-id: file:///svn/phpbb/trunk@5434 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
87ab0632d8
commit
9187d51a4b
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ switch ($mode)
|
|||
LEFT JOIN ' . USER_GROUP_TABLE . ' ug ON (ug.group_id = g.group_id AND ug.user_id = ' . $user->data['user_id'] . ')
|
||||
WHERE u.user_id IN (' . implode(', ', $admin_id_ary + $mod_id_ary) . ')
|
||||
AND u.group_id = g.group_id
|
||||
GROUP BY u.user_id
|
||||
ORDER BY g.group_name ASC, u.username ASC';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue