diff --git a/enrol/cohort/lib.php b/enrol/cohort/lib.php index 11c22f7e0e8..5e92108dd2f 100644 --- a/enrol/cohort/lib.php +++ b/enrol/cohort/lib.php @@ -129,9 +129,7 @@ class enrol_cohort_plugin extends enrol_plugin { 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 }