Skip to content

Commit

Permalink
MDL-10523 - Removing DISTINCT from the query will enable the function…
Browse files Browse the repository at this point in the history
… to work with MSSQL which was having difficulty with the current syntax and should not impact other queries because the user id should already be unique.
  • Loading branch information
arborrow committed Nov 27, 2007
1 parent 1b1bd59 commit 200f64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion group/lib/legacylib.php
Expand Up @@ -112,7 +112,7 @@ function get_group_users($groupid, $sort='u.lastaccess DESC', $exceptions='',
if (!empty($extrafield)) {
$extrafield = ','.$extrafield;
}
return get_records_sql("SELECT DISTINCT $fields $extrafield
return get_records_sql("SELECT $fields $extrafield
FROM {$CFG->prefix}user u,
{$CFG->prefix}groups_members m
WHERE m.groupid = '$groupid'
Expand Down

0 comments on commit 200f64d

Please sign in to comment.