diff --git a/src/Parser/Fam.php b/src/Parser/Fam.php index c33511b..d3b9784 100644 --- a/src/Parser/Fam.php +++ b/src/Parser/Fam.php @@ -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]));