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

This commit is contained in:
Adam Olley
2012-08-14 13:58:41 +09:30
parent e6aac11d94
commit 6353a60ed3
+1 -3
View File
@@ -124,9 +124,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
}