Skip to content

Commit

Permalink
CodeStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Aug 7, 2024
1 parent fd15e70 commit 01b92fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Module/AbstractIndividualListModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ protected function individuals(Tree $tree, array $surns_to_show, string $galpha,

// The name from the database may be private - check the filtered list...
foreach ($individual->getAllNames() as $n => $name) {
if ($name['givn'] === $row->n_givn && $name['surn'] === $row->n_surn)
if ($name['givn'] === $row->n_givn && $name['surn'] === $row->n_surn) {
if ($galpha === '' || I18N::language()->initialLetter(I18N::language()->normalize(I18N::strtoupper($row->n_givn))) === $galpha) {
$individual->setPrimaryName($n);
// We need to clone $individual, as we may have multiple references to the
Expand All @@ -726,6 +726,7 @@ protected function individuals(Tree $tree, array $surns_to_show, string $galpha,
$individuals->push(clone $individual);
break;
}
}
}
}

Expand Down

0 comments on commit 01b92fd

Please sign in to comment.