mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-50920 enrol: Remove pointless DB update in enrol_meta
This commit is contained in:
parent
57739a72cb
commit
e074ef4c52
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user