Skip to content

Commit

Permalink
seboettg#161 "Homer, ."
Browse files Browse the repository at this point in the history
  • Loading branch information
glorieux-f committed Aug 3, 2023
1 parent 8242c4c commit 77d1e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rendering/Name/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private function formatName($nameItem, $rank)
$nameObj = $this->cloneNamePOSC($nameItem);

$useInitials = $this->initialize && !is_null($this->initializeWith) && $this->initializeWith !== false;
if ($useInitials && isset($nameItem->given)) {
if ($useInitials && isset($nameItem->given) && !empty($nameItem->given)) {
$nameObj->given = StringHelper::initializeBySpaceOrHyphen($nameItem->given, $this->initializeWith);
}

Expand Down

0 comments on commit 77d1e8f

Please sign in to comment.