summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibrary/WT/GedcomRecord.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/WT/GedcomRecord.php b/library/WT/GedcomRecord.php
index 91fe0dae50..24240873a1 100755
--- a/library/WT/GedcomRecord.php
+++ b/library/WT/GedcomRecord.php
@@ -431,13 +431,13 @@ class WT_GedcomRecord {
foreach ($matches as $match) {
// Treat 1 NAME / 2 TYPE married the same as _MARNM
if ($match[1]=='NAME' && strpos($match[3], "\n2 TYPE married")!==false) {
- $this->_addName('_MARNM', $match[2] ? $match[2] : $this->getFallBackName(), $fact->getGedcom());
+ $this->_addName('_MARNM', $match[2], $fact->getGedcom());
} else {
- $this->_addName($match[1], $match[2] ? $match[2] : $this->getFallBackName(), $fact->getGedcom());
+ $this->_addName($match[1], $match[2], $fact->getGedcom());
}
if ($match[3] && preg_match_all("/^{$sublevel} (ROMN|FONE|_\w+) (.+)((\n[{$subsublevel}-9].+)*)/m", $match[3], $submatches, PREG_SET_ORDER)) {
foreach ($submatches as $submatch) {
- $this->_addName($submatch[1], $submatch[2] ? $submatch[2] : $this->getFallBackName(), $fact->getGedcom());
+ $this->_addName($submatch[1], $submatch[2], $match[3]);
}
}
}