summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print_lists.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions/functions_print_lists.php')
-rw-r--r--includes/functions/functions_print_lists.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php
index ece3bab0d6..dc253e1a5d 100644
--- a/includes/functions/functions_print_lists.php
+++ b/includes/functions/functions_print_lists.php
@@ -406,7 +406,9 @@ function format_indi_table($datalist, $option='') {
}
} else {
$death_date=$person->getEstimatedDeathDate();
- if ($SHOW_EST_LIST_DATES) {
+ // Estimated death dates are a fixed number of years after the birth date.
+ // Don't show estimates in the future.
+ if ($SHOW_EST_LIST_DATES && $death_date->MinJD() < WT_CLIENT_JD) {
$html .= $death_date->Display(!$SEARCH_SPIDER);
} else if ($person->isDead()) {
$html .= WT_I18N::translate('yes');