Permalink
Browse files

Merge branch 'MDL-26607_search_error' of git://github.com/andyjdavis/…

…moodle
  • Loading branch information...
2 parents 0235bd8 + b6e5265 commit 9d61397181ed38dbee538140867ca4088041dbec Sam Hemelryk committed Mar 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 message/lib.php
View
@@ -1441,8 +1441,8 @@ 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,
- FROM {user} u, mc.id as contactlistid, mc.blocked
+ $users = $DB->get_records_sql("SELECT $ufields, mc.id as contactlistid, mc.blocked
+ FROM {user} u
JOIN {role_assignments} ra ON ra.userid = u.id
LEFT JOIN {message_contacts} mc
ON mc.contactid = u.id AND mc.userid = ?

0 comments on commit 9d61397

Please sign in to comment.