Skip to content

Commit

Permalink
do not rely on module for sendChangeMail hook
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Oct 18, 2018
1 parent 36d8d41 commit ded939f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/modules/registration_info_mailer/src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ded939f

Please sign in to comment.