Skip to content

Commit

Permalink
Merge pull request #26 from Joppla/master
Browse files Browse the repository at this point in the history
Fix a bug preventing spouse and sibling events from showing up
  • Loading branch information
dkniffin committed Feb 3, 2017
2 parents 9ef4770 + 59ea8c1 commit 8788393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private function getEvents() {

# Siblings
foreach($family->getChildren() as $child) {
if ( ! $child === $thisPerson) {
if ( $child !== $thisPerson) {
array_push($people, $child);
}
}
Expand All @@ -145,7 +145,7 @@ private function getEvents() {
foreach($thisPerson->getSpouseFamilies() as $family) {
# Spouse
foreach($family->getSpouses() as $spouse) {
if ( ! $spouse === $thisPerson) {
if ( $spouse !== $thisPerson) {
array_push($people, $spouse);
}
}
Expand Down

0 comments on commit 8788393

Please sign in to comment.