Commit c7e5e226 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't display deleted users in my groups member listing

parent 94b760dc
...@@ -1090,7 +1090,7 @@ function group_get_associated_groups($userid, $filter='all', $limit=20, $offset= ...@@ -1090,7 +1090,7 @@ function group_get_associated_groups($userid, $filter='all', $limit=20, $offset=
$members = get_records_sql_array(" $members = get_records_sql_array("
SELECT u.* SELECT u.*
FROM {group_member} gm FROM {group_member} gm
INNER JOIN {usr} u ON gm.member = u.id INNER JOIN {usr} u ON (gm.member = u.id AND u.deleted = 0)
WHERE gm.group = ? WHERE gm.group = ?
ORDER BY " . db_random() . " ORDER BY " . db_random() . "
LIMIT 3", array($groupid)); LIMIT 3", array($groupid));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment