diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-18 22:15:36 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-18 22:15:36 +0000 |
| commit | 786fef447072d87a6362ca3981d7ac142861af2e (patch) | |
| tree | b5342284b9aedb5db304ac7546c3d29aa70c87c4 | |
| parent | cde56608850b625cd2ce984f49d775813dd67f88 (diff) | |
| download | webtrees-786fef447072d87a6362ca3981d7ac142861af2e.tar.gz webtrees-786fef447072d87a6362ca3981d7ac142861af2e.tar.bz2 webtrees-786fef447072d87a6362ca3981d7ac142861af2e.zip | |
Comparing GedcomRecords needs === rather than == as the same record will always be the same object
| -rw-r--r-- | library/WT/Individual.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Individual.php b/library/WT/Individual.php index 76e8b629b1..6bc1f26b08 100644 --- a/library/WT/Individual.php +++ b/library/WT/Individual.php @@ -951,7 +951,7 @@ class WT_Individual extends WT_GedcomRecord { function getStepFamilyLabel(WT_Family $family) { foreach ($this->getChildFamilies() as $fam) { if ($fam !== $family) { - if ((is_null($fam->getHusband()) || $fam->getHusband() !== $family->getHusband()) && (is_null($fam->getWife()) || $fam->getWife() == $family->getWife())) { + if ((is_null($fam->getHusband()) || $fam->getHusband() !== $family->getHusband()) && (is_null($fam->getWife()) || $fam->getWife() === $family->getWife())) { if ($family->getHusband()) { if ($family->getWife()->getSex()=='F') { return /* I18N: A step-family. %s is an individual’s name */ WT_I18N::translate('Mother’s family with %s', $family->getHusband()->getFullName()); |
