summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-01-26 20:37:26 +0000
committerGreg Roach <fisharebest@gmail.com>2014-01-26 20:37:26 +0000
commit371873ac3e91ba86f67366ff8ca077a5a5aab785 (patch)
tree009bc233badd45bc114127755bfe68e4bb3a6be3
parent59dbde3ddf594d348fba799d5e745e72387ca3fd (diff)
downloadwebtrees-371873ac3e91ba86f67366ff8ca077a5a5aab785.tar.gz
webtrees-371873ac3e91ba86f67366ff8ca077a5a5aab785.tar.bz2
webtrees-371873ac3e91ba86f67366ff8ca077a5a5aab785.zip
_HEB names not included in INDI records
-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]);
}
}
}