Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'w37_MDL-35270_m23_oracohort' of git://github.com/skodak…

…/moodle into MOODLE_23_STABLE
  • Loading branch information...
commit 8146d3f12dd5906c9bdfce58600539abfd02bb18 2 parents 74fae52 + bafffec
@stronk7 stronk7 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/cohort/locallib.php
View
4 enrol/cohort/locallib.php
@@ -51,8 +51,8 @@ public static function member_added($ca) {
$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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.