Skip to content

Commit

Permalink
MDL-35270 fix ambiguously defined column
Browse files Browse the repository at this point in the history
Credit goes to Sara Arjona, thanks.
  • Loading branch information
skodak committed Sep 8, 2012
1 parent 71e12dc commit bafffec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/cohort/locallib.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit bafffec

Please sign in to comment.