Skip to content

Commit

Permalink
Merge branch 'MDL-34870' of git://github.com/aolley/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Aug 22, 2012
2 parents b6b3434 + 238a7b3 commit cff2026
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 cff2026

Please sign in to comment.