Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 5, 2023
1 parent 6a973d9 commit d1183e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -4185,7 +4185,9 @@ sub print_person
$spouse_number++;
if(defined($dateofmarriage) && (scalar(@spouses) == 2) && ($spouse_number == 2)) {
my $death_of_first_spouse = dateofdeath($spouses[0]);
if($death_of_first_spouse && (datecmp($dateofmarriage, $death_of_first_spouse) > 0)) {
if($death_of_first_spouse &&
($death_of_first_spouse !~ /[a-z]{3}\/[a-z]{3}/i) &&
(datecmp($dateofmarriage, $death_of_first_spouse) > 0)) {
if($printed_bracket) {
$bio .= ', ';
$name .= ', ';
Expand Down

0 comments on commit d1183e8

Please sign in to comment.