Merge branch 'w37_MDL-35270_m24_oracohort' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2012-09-11 01:48:34 +02:00
+2 -2
View File
@@ -51,8 +51,8 @@ class enrol_cohort_handler {
$sql = "SELECT e.*, r.id as roleexists
FROM {enrol} e
LEFT JOIN {role} r ON (r.id = e.roleid)
WHERE customint1 = :cohortid AND enrol = 'cohort'
ORDER BY id ASC";
WHERE e.customint1 = :cohortid AND e.enrol = 'cohort'
ORDER BY e.id ASC";
if (!$instances = $DB->get_records_sql($sql, array('cohortid'=>$ca->cohortid))) {
return true;
}