Another test.

This commit is contained in:
Jeff Teunissen 2001-05-06 02:53:19 +00:00
parent 2a866c0c94
commit ff6ed72064
1 changed files with 3 additions and 2 deletions

View File

@ -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 ());