From bbf401bec6ac786fdd181dd33db04574c7194f84 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 27 Jan 2017 14:24:10 +0800 Subject: [PATCH] MDL-57782 enrol_self: fix check when email needs to be sent Thanks to Leandro for providing a fix --- enrol/self/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }