diff --git a/enrol/self/lib.php b/enrol/self/lib.php index 565f3ef5aeb..db8ed4b0a3a 100644 --- a/enrol/self/lib.php +++ b/enrol/self/lib.php @@ -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); } }