Skip to content

Commit

Permalink
Merge pull request #6 from fritzmg/patch-3
Browse files Browse the repository at this point in the history
do not rely on module for setNewPassword hook
  • Loading branch information
davidmaack authored Feb 23, 2019
2 parents 36d8d41 + ded939f commit 4714036
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 4714036

Please sign in to comment.