MDL-50920 enrol: Remove pointless DB update in enrol_meta

This commit is contained in:
Skylar Kelty 2015-08-12 11:52:24 +01:00
parent 57739a72cb
commit e074ef4c52

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);