summaryrefslogtreecommitdiff
path: root/library/WT/Controller
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-07-18 19:58:59 +0000
committerfisharebest <fisharebest@gmail.com>2013-07-18 19:58:59 +0000
commitd6560bf460e9c5313a85af787cd7c8a67634ceaa (patch)
tree19f2e82d5527cee5141536b796ac776aa462e2f5 /library/WT/Controller
parent4ad1d07a184b7b2266ae85e0767413388fc120d1 (diff)
downloadwebtrees-d6560bf460e9c5313a85af787cd7c8a67634ceaa.tar.gz
webtrees-d6560bf460e9c5313a85af787cd7c8a67634ceaa.tar.bz2
webtrees-d6560bf460e9c5313a85af787cd7c8a67634ceaa.zip
Comparing GedcomRecords needs === rather than == as the same record will always be the same object
Diffstat (limited to 'library/WT/Controller')
-rw-r--r--library/WT/Controller/Fanchart.php2
-rw-r--r--library/WT/Controller/Lifespan.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/WT/Controller/Fanchart.php b/library/WT/Controller/Fanchart.php
index e09d183db2..9a3353c9c4 100644
--- a/library/WT/Controller/Fanchart.php
+++ b/library/WT/Controller/Fanchart.php
@@ -335,7 +335,7 @@ class WT_Controller_Fanchart extends WT_Controller_Chart {
$html.= '<br><span class="name1">'.WT_I18N::translate('Sibling').'</span>';
}
foreach ($children as $sibling) {
- if ($sibling == $person) {
+ if ($sibling === $person) {
$html.= '<br>&nbsp;&nbsp;<a href="'.$sibling->getHtmlUrl().'" class="name1"> '.$sibling->getFullName().'</a>';
}
}
diff --git a/library/WT/Controller/Lifespan.php b/library/WT/Controller/Lifespan.php
index 0271965738..22a097a497 100644
--- a/library/WT/Controller/Lifespan.php
+++ b/library/WT/Controller/Lifespan.php
@@ -221,7 +221,7 @@ class WT_Controller_Lifespan extends WT_Controller_Page {
$this->pids[]=$parent->getXref();
}
foreach ($family->getChildren() as $sibling) {
- if ($person != $sibling) {
+ if ($person !== $sibling) {
$this->pids[]=$sibling->getXref();
}
}