diff --git a/pprOjsPlugin/services/email/PPRFirstNameEmailService.inc.php b/pprOjsPlugin/services/email/PPRFirstNameEmailService.inc.php index a4147ef..874e2d7 100644 --- a/pprOjsPlugin/services/email/PPRFirstNameEmailService.inc.php +++ b/pprOjsPlugin/services/email/PPRFirstNameEmailService.inc.php @@ -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;