MDL-50920 enrol: Remove pointless DB update in enrol_meta
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user