Skip to content

Commit

Permalink
PRG: fix salutation in email (#418668)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofBuch authored and klees committed Aug 12, 2024
1 parent b3786a5 commit a5746b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/StudyProgramme/classes/Mail/class.ilPRGMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function sendMail(
string $body_template
): bool {
$user_info = $assignment->getUserInformation();
$gender = $user_info->getGender() ?? 'n';
$gender = $user_info->getGender() ?: 'anonymous';
$name = implode(' ', [$user_info->getFirstname(), $user_info->getLastname()]);
$login = $user_info->getLogin();
$prg_link = \ilLink::_getStaticLink(ilObjStudyProgramme::getRefIdFor($assignment->getRootId()), 'prg');
Expand Down

0 comments on commit a5746b3

Please sign in to comment.