Skip to content
Browse files

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

…/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 74fae52 + bafffec commit 8146d3f12dd5906c9bdfce58600539abfd02bb18 @stronk7 stronk7 committed Sep 11, 2012
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;
}

0 comments on commit 8146d3f

Please sign in to comment.
Something went wrong with that request. Please try again.