From ded939f5e0e821c1367fc3194b752f41aa2665a2 Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Thu, 18 Oct 2018 14:37:27 +0200 Subject: [PATCH] do not rely on module for sendChangeMail hook --- system/modules/registration_info_mailer/src/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.