summaryrefslogtreecommitdiff
path: root/resources/views/modules/relatives/family.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/relatives/family.phtml')
-rw-r--r--resources/views/modules/relatives/family.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index 51727f8fc5..be95f5c66a 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -16,7 +16,7 @@
$found = false;
foreach ($family->getFacts('HUSB', false, $fam_access_level) as $fact) {
$found |= !$fact->isPendingDeletion();
- $person = $fact->getTarget();
+ $person = $fact->target();
if ($person instanceof Individual) {
$row_class = 'wt-gender-' . $person->getSex();
if ($fact->isPendingAddition()) {
@@ -52,7 +52,7 @@
$found = false;
foreach ($family->getFacts('WIFE', false, $fam_access_level) as $fact) {
- $person = $fact->getTarget();
+ $person = $fact->target();
if ($person instanceof Individual) {
$found |= !$fact->isPendingDeletion();
$row_class = 'wt-gender-' . $person->getSex();
@@ -133,7 +133,7 @@
///// CHIL /////
$child_number = 0;
foreach ($family->getFacts('CHIL', false, $fam_access_level) as $fact) {
- $person = $fact->getTarget();
+ $person = $fact->target();
if ($person instanceof Individual) {
$row_class = 'wt-gender-' . $person->getSex();
if ($fact->isPendingAddition()) {