From eb126c2dea28abb141a8c748c044424bf5da7202 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 23 Jun 2007 20:00:49 +0000 Subject: [PATCH] *Fix bug with year 9999 --- includes/SpecialContributions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 124188bf19..eeed985b4f 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -94,7 +94,9 @@ class ContribsPager extends IndexPager { $ts_end = str_pad($year_end . $month_end, 14, '0' ); $condition[] = "rev_timestamp >= $ts_start"; - $condition[] = "rev_timestamp < $ts_end"; + # If just given the year 9999, we need not enforce an upper bound + if( strlen($year_end) <= 4 ) + $condition[] = "rev_timestamp < $ts_end"; } return $condition; -- 2.20.1