mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 07:11:43 +00:00
Allright, everything seems to work now. There may be a problem with
is_int() on SourceForge.
This commit is contained in:
parent
e01efe0688
commit
35edd0cb35
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue