diff --git a/system/modules/registration_info_mailer/src/Handler.php b/system/modules/registration_info_mailer/src/Handler.php index cd89838..90bab28 100644 --- a/system/modules/registration_info_mailer/src/Handler.php +++ b/system/modules/registration_info_mailer/src/Handler.php @@ -89,10 +89,10 @@ public function sendRegistrationMail($intId, $arrData, $objModule) * * @return void */ - public function sendChangeMail($objUser, $formData, $objModule) + public function sendChangeMail($objUser, $formData, $objModule = null) { // Check if the registration mail should be send. - if ($objModule->rim_change_active == 1) { + if (null !== $objModule && $objModule->rim_change_active == 1) { $this->getUserOptions($objUser); // Check if we have all needed data.