Commit bbf401be authored by Marina Glancy's avatar Marina Glancy

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

Thanks to Leandro for providing a fix
parent e7059ec5
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment