Skip to content

Commit

Permalink
Fix uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 2, 2024
1 parent 1098c7f commit e93ede3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -4693,9 +4693,10 @@ sub print_person
# '<a href="' . make_filename_from_person(person => $_) . '">' .
# $_->given_names() . '</a>'
# } @children);
my $decoded = conjunction(map { given_names($_) } @children);
$bio .= ": $decoded";
$phrase->append(": $decoded");
if(my $decoded = conjunction(map { given_names($_) } @children)) {
$bio .= ": $decoded";
$phrase->append(": $decoded");
}
} else {
# List children by the same parent together
# $childnames = join(', ', map {
Expand Down

0 comments on commit e93ede3

Please sign in to comment.