1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-09 00:55:23 +02:00

- this works on other DBs now too :D

git-svn-id: file:///svn/phpbb/trunk@5829 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-04-22 18:34:13 +00:00
parent 756aaf1005
commit 171a535dd5

View File

@ -658,6 +658,7 @@ class acp_groups
$sql = 'SELECT g.group_id, g.group_name, g.group_type, COUNT(ug.user_id) AS total_members
FROM ' . GROUPS_TABLE . ' g
LEFT JOIN ' . USER_GROUP_TABLE . ' ug USING (group_id)
GROUP BY g.group_id, g.group_name, g.group_type
ORDER BY g.group_type ASC, g.group_name';
$result = $db->sql_query($sql);