summaryrefslogtreecommitdiff
path: root/modules_v3
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-07-18 19:59:52 +0000
committerfisharebest <fisharebest@gmail.com>2013-07-18 19:59:52 +0000
commitbe2f27e228457917b3f4cab03e95e9c0e8ef7a27 (patch)
treead590ec93a18fa51f7a403275c3d3f0721b9f02a /modules_v3
parentd6560bf460e9c5313a85af787cd7c8a67634ceaa (diff)
downloadwebtrees-be2f27e228457917b3f4cab03e95e9c0e8ef7a27.tar.gz
webtrees-be2f27e228457917b3f4cab03e95e9c0e8ef7a27.tar.bz2
webtrees-be2f27e228457917b3f4cab03e95e9c0e8ef7a27.zip
Comparing GedcomRecords needs === rather than == as the same record will always be the same object
Diffstat (limited to 'modules_v3')
-rw-r--r--modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php4
-rw-r--r--modules_v3/personal_facts/module.php2
-rw-r--r--modules_v3/tree/class_treeview.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php
index d3c5a70b81..cac5621edd 100644
--- a/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php
+++ b/modules_v3/GEDFact_assistant/_CENS/census_3_search_add.php
@@ -1086,7 +1086,7 @@ if (!defined('WT_WEBTREES')) {
echo addslashes($fulln); // mnam = Full Name
}
?>", "<?php
- if ($gparent == $person) {
+ if ($gparent === $person) {
echo "Head"; // label = Head
} else {
echo $label; // label = Relationship
@@ -1582,7 +1582,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1",
//-- Step Husband --------------------------------------
if ($natdad == "yes") {
} else {
- if (($husb || $num>0) && $husb != $person) {
+ if (($husb || $num>0) && $husb !== $person) {
if ($husb) {
//-- Step Husbands Parents -----------------------------
$gparent=WT_Individual::getInstance($husb->getXref());
diff --git a/modules_v3/personal_facts/module.php b/modules_v3/personal_facts/module.php
index 56f40027e3..9222b2d2f9 100644
--- a/modules_v3/personal_facts/module.php
+++ b/modules_v3/personal_facts/module.php
@@ -338,7 +338,7 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab {
}
foreach ($family->getSpouses() as $spouse) {
foreach ($spouse->getSpouseFamilies() as $sfamily) {
- if ($family != $sfamily) {
+ if ($family !== $sfamily) {
// Add half-siblings
foreach (self::child_facts($person, $sfamily, '_HSIB', '') as $fact) {
$facts[] = $fact;
diff --git a/modules_v3/tree/class_treeview.php b/modules_v3/tree/class_treeview.php
index 8afa4131bc..deb8dbab80 100644
--- a/modules_v3/tree/class_treeview.php
+++ b/modules_v3/tree/class_treeview.php
@@ -245,7 +245,7 @@ class TreeView {
foreach ($sfams as $famid=>$family) {
$p = $family->getSpouse($person);
if ($p) {
- if (($p == $partner) || $this->allPartners) {
+ if (($p === $partner) || $this->allPartners) {
$pf = $p->getPrimaryChildFamily();
if (!empty($pf)) {
$fop[] = Array($pf->getHusband(), $pf);