Skip to content

Commit

Permalink
Handle lack of funeral date
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 11, 2024
1 parent 1476b40 commit dea4b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -6626,7 +6626,7 @@ sub print_person
$record = $cremation;
}
if(defined($record)) {
if($funeral && (datecmp($funeral->date(), $record->date()) == 0) && (my $place = place({ person => $person, record => $funeral }))) {
if($funeral && $record->date() && (datecmp($funeral->date(), $record->date()) == 0) && (my $place = place({ person => $person, record => $funeral }))) {
if(my $weather = weather({ person => $person, record => $funeral, meteo => $meteo })) {
$phrase->append(" ($weather)");
}
Expand Down

0 comments on commit dea4b1b

Please sign in to comment.