From 786fef447072d87a6362ca3981d7ac142861af2e Mon Sep 17 00:00:00 2001 From: fisharebest Date: Thu, 18 Jul 2013 22:15:36 +0000 Subject: Comparing GedcomRecords needs === rather than == as the same record will always be the same object --- library/WT/Individual.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.3