MDL-57782 enrol_self: fix check when email needs to be sent
Thanks to Leandro for providing a fix
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user