MDL-24278 fixed regression that surfaced after my recent fix

This commit is contained in:
Petr Skoda
2010-09-19 13:30:05 +00:00
parent 582bae08ff
commit b2cd657023
+1 -1
View File
@@ -739,7 +739,7 @@ function has_coursecontact_role($userid) {
$sql = "SELECT 1
FROM {role_assignments}
WHERE userid = :userid AND roleid IN ($CFG->coursecontact)";
return $DB->record_exists($sql, array('userid'=>$userid));
return $DB->record_exists_sql($sql, array('userid'=>$userid));
}
/**