Skip to content

Commit

Permalink
Fixed possible undefined property when logging the email template key
Browse files Browse the repository at this point in the history
  • Loading branch information
abujeda committed May 23, 2024
1 parent 5b0b2b3 commit b2a7bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pprOjsPlugin/services/email/PPRFirstNameEmailService.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ function addFirstNamesToEmailTemplate($hookName, $arguments) {
error_log("PPR[PPRFirstNameEmailService] processing emailTemplate={$emailTemplate->emailKey}");
$this->pprObjectFactory->firstNamesManagementService()->addFirstNamesToEmailTemplate($emailTemplate);
} else {
error_log("PPR[PPRFirstNameEmailService] notSupported emailTemplate={$emailTemplate->emailKey}");
$emailKey = $emailTemplate->emailKey ?? 'N/A';
error_log("PPR[PPRFirstNameEmailService] notSupported emailTemplate={$emailKey}");
}

return false;
Expand Down

0 comments on commit b2a7bb3

Please sign in to comment.