Allright, everything seems to work now. There may be a problem with

is_int() on SourceForge.
This commit is contained in:
Jeff Teunissen 2001-05-06 03:15:40 +00:00
parent e01efe0688
commit 35edd0cb35
1 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,8 @@
function monthlyNews ($month, $year) function monthlyNews ($month, $year)
{ {
// Do sanity checking on dates // Do sanity checking on dates
if ((!is_int ($year)) || ($year < 2000)) { echo $year;
if ($year < 2000) {
$year = date ('Y', time ()); $year = date ('Y', time ());
} }
@ -203,8 +204,7 @@
$month = date ('m', time ()); $month = date ('m', time ());
} }
$date = sprintf ("%02d-%02d", $year - 2000, $month); $date = sprintf ("%04d-%02d", $year, $month);
echo $year . $date;
if (sqlAvail) { if (sqlAvail) {
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass); $conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);