Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -94,7 +94,9 @@ |
95 | 95 | $ts_end = str_pad($year_end . $month_end, 14, '0' ); |
96 | 96 | |
97 | 97 | $condition[] = "rev_timestamp >= $ts_start"; |
98 | | - $condition[] = "rev_timestamp < $ts_end"; |
| 98 | + # If just given the year 9999, we need not enforce an upper bound |
| 99 | + if( strlen($year_end) <= 4 ) |
| 100 | + $condition[] = "rev_timestamp < $ts_end"; |
99 | 101 | } |
100 | 102 | |
101 | 103 | return $condition; |