Skip to content

Commit

Permalink
Fix adding to undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 7, 2024
1 parent 8cc8f94 commit 98d675e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -6437,10 +6437,14 @@ sub print_person
$year2 = $2;
$date2 =~ s/,\s//;
}
push @phrases, $phrase;
$bio->append(conjunction(map { $_->as_string() } @phrases))->append('. ');
$phrase = Data::Text->new();
@phrases = ();
if($phrase->length()) {
push @phrases, $phrase;
}
if(scalar(@phrases)) {
$bio->appendconjunction(@phrases)->append('. ');
$phrase = Data::Text->new();
@phrases = ();
}
if(defined($year1) && defined($year2) && ($year1 == $year2)) {
if($date1 eq 'in ') {
$date1 = '';
Expand Down

0 comments on commit 98d675e

Please sign in to comment.