diff options
| -rw-r--r-- | library/WT/Fact.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Fact.php b/library/WT/Fact.php index c4e0b114b0..c73f7f6307 100644 --- a/library/WT/Fact.php +++ b/library/WT/Fact.php @@ -272,7 +272,7 @@ class WT_Fact { $attributes[] = '<span dir="auto">' . WT_Filter::escapeHtml($value) . '</span>'; } $date = $this->getDate(); - if ($this->getTag() == 'BIRT' && $SHOW_PARENTS_AGE) { + if ($this->getTag() == 'BIRT' && $SHOW_PARENTS_AGE && $this->getParent() instanceof WT_Individual) { $attributes[] = $date->display() . format_parents_age($this->getParent(), $date); } else { $attributes[] = $date->display(); |
