summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-09-28 14:58:07 +0100
committerGreg Roach <fisharebest@gmail.com>2014-09-28 14:58:07 +0100
commit8d31edab472e8b189c7062f5ad95ef43b05542a3 (patch)
treeaeba9b293f69a681bfb23a252f1ded8fab5a7699 /includes
parent00f42fa35d8447ddea9b60631e42b9d551f0f9d5 (diff)
downloadwebtrees-8d31edab472e8b189c7062f5ad95ef43b05542a3.tar.gz
webtrees-8d31edab472e8b189c7062f5ad95ef43b05542a3.tar.bz2
webtrees-8d31edab472e8b189c7062f5ad95ef43b05542a3.zip
Fix #1266160 - Vital Records Report does not sort
Diffstat (limited to 'includes')
-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');