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