MDL-57782 enrol_self: fix check when email needs to be sent

Thanks to Leandro for providing a fix
This commit is contained in:
Marina Glancy 2017-01-27 14:24:10 +08:00
parent e7059ec5e2
commit bbf401bec6

View File

@ -173,7 +173,7 @@ class enrol_self_plugin extends enrol_plugin {
}
}
// Send welcome message.
if ($instance->customint4 !== ENROL_DO_NOT_SEND_EMAIL) {
if ($instance->customint4 != ENROL_DO_NOT_SEND_EMAIL) {
$this->email_welcome_message($instance, $USER);
}
}