Skip to content

Commit

Permalink
Update Fam.php
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisdelicata authored Dec 22, 2024
1 parent 01d5abe commit 53cc01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/Fam.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function parse(\Gedcom\Parser $parser)
$fam->addChil($parser->normalizeIdentifier($record[2]));
break;
case 'NCHI':
$fam->setNchi(trim((string) $record[2]));
if(isset($record[2])) $fam->setNchi(trim((string) $record[2]));
break;
case 'SUBM':
$fam->addSubm($parser->normalizeIdentifier($record[2]));
Expand Down

0 comments on commit 53cc01b

Please sign in to comment.