summaryrefslogtreecommitdiff
path: root/app/Family.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-10-10 10:29:39 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-10-10 10:29:39 +0100
commit8905a924838f3a077ef57f8ac222c2a441e0a467 (patch)
tree6935cd762f5ed694333b850c54d1cbb6fc7a2b5b /app/Family.php
parenta12309b712860860d7dbe54fc592919f6c81adc3 (diff)
downloadwebtrees-8905a924838f3a077ef57f8ac222c2a441e0a467.tar.gz
webtrees-8905a924838f3a077ef57f8ac222c2a441e0a467.tar.bz2
webtrees-8905a924838f3a077ef57f8ac222c2a441e0a467.zip
Fixing GEDCOM errors belongs in import
Diffstat (limited to 'app/Family.php')
-rw-r--r--app/Family.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/Family.php b/app/Family.php
index 446cd6b1a4..e6f7934bfd 100644
--- a/app/Family.php
+++ b/app/Family.php
@@ -55,14 +55,6 @@ class Family extends GedcomRecord
if (preg_match('/^1 WIFE @(.+)@/m', $gedcom . $pending, $match)) {
$this->wife = Individual::getInstance($match[1], $tree);
}
-
- // Make sure husb/wife are the right way round.
- if ($this->husb && $this->husb->getSex() === 'F' || $this->wife && $this->wife->getSex() === 'M') {
- list($this->husb, $this->wife) = [
- $this->wife,
- $this->husb,
- ];
- }
}
/**