Merge branch 'MDL-50920-2.9' of git://github.com/sk-unikent/moodle into MOODLE_29_STABLE

This commit is contained in:
David Monllao
2015-09-02 08:45:01 +08:00
-3
View File
@@ -192,9 +192,6 @@ class enrol_meta_observer extends enrol_meta_handler {
}
foreach ($enrols as $enrol) {
$enrol->customint = 0;
$DB->update_record('enrol', $enrol);
if ($unenrolaction == ENROL_EXT_REMOVED_SUSPEND or $unenrolaction == ENROL_EXT_REMOVED_SUSPENDNOROLES) {
// This makes all enrolments suspended very quickly.
$plugin->update_status($enrol, ENROL_INSTANCE_DISABLED);