mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 15:22:13 +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)
|
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);
|
||||||
|
|
Loading…
Reference in a new issue