Skip to content

Commit

Permalink
MDL-57782 enrol_self: fix check when email needs to be sent
Browse files Browse the repository at this point in the history
Thanks to Leandro for providing a fix
  • Loading branch information
marinaglancy committed Jan 27, 2017
1 parent e7059ec commit bbf401b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/self/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function enrol_self(stdClass $instance, $data = null) {
}
}
// 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);
}
}
Expand Down

0 comments on commit bbf401b

Please sign in to comment.