diff --git a/lib/news.php b/lib/news.php index 0c5e799..662751c 100644 --- a/lib/news.php +++ b/lib/news.php @@ -195,9 +195,10 @@ function monthlyNews ($month, $year) { // Do sanity checking on dates - if (((!is_int ($year)) || $year < 00)) { - $year = date ('y', time ()); + if (((!is_int ($year)) || $year < 2000)) { + $year = date ('Y', time ()); } + $year =- 2000; if ($month < 1 || $month > 12) { $month = date ('m', time ());