Skip to content

Commit

Permalink
Merge branch 'MDL-34870_23' of git://github.com/aolley/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_23_STABLE
  • Loading branch information
danpoltawski committed Aug 22, 2012
2 parents 70dc5ad + 6353a60 commit fb4e694
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions enrol/cohort/lib.php
Expand Up @@ -124,9 +124,7 @@ public function course_updated($inserted, $course, $data) {
global $CFG;

if (!$inserted) {
// sync cohort enrols
require_once("$CFG->dirroot/enrol/cohort/locallib.php");
enrol_cohort_sync($course->id);
// Let's not sync cohorts anytime a course is updated...
} else {
// cohorts are never inserted automatically
}
Expand Down

0 comments on commit fb4e694

Please sign in to comment.