Skip to content
Browse files

Merge branch 'MDL-31869_message_search_roles' of git://…

  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Mar 27, 2012
2 parents a7cd1f5 + 186fc53 commit 1cc4412c89817e1d0b66d2e706ac1385e2bc6c78
Showing with 1 addition and 1 deletion.
  1. +1 −1 message/lib.php
@@ -1503,7 +1503,7 @@ function message_search_users($courseid, $searchtext, $sort='', $exceptions='')
// everyone who has a role assignment in this course or higher
$params = array($USER->id, "%$searchtext%");
$users = $DB->get_records_sql("SELECT $ufields, as contactlistid, mc.blocked
$users = $DB->get_records_sql("SELECT DISTINCT $ufields, as contactlistid, mc.blocked
FROM {user} u
JOIN {role_assignments} ra ON ra.userid =
LEFT JOIN {message_contacts} mc

0 comments on commit 1cc4412

Please sign in to comment.
You can’t perform that action at this time.