MDL-34870: Prevent cohort enrol sync when updating course record

This commit is contained in:
Adam Olley
2012-08-22 10:03:34 +08:00
committed by Dan Poltawski
parent faf8ef6f04
commit 892600868b
+1 -3
View File
@@ -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
}