From: Aaron Schulz Date: Sat, 23 Jun 2007 20:00:49 +0000 (+0000) Subject: *Fix bug with year 9999 X-Git-Tag: 1.31.0-rc.0~52428 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=eb126c2dea28abb141a8c748c044424bf5da7202;p=lhc%2Fweb%2Fwiklou.git *Fix bug with year 9999 --- 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;