1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

allow a year ahead to be displayed

This commit is contained in:
Gabor Hojtsy
2003-12-31 13:04:27 +00:00
parent 0206356a4c
commit f4fc2363ff

View File

@@ -361,8 +361,8 @@ function valid_year($year)
// Get current year and compare to one sent in
$current_year = date("Y");
// We only allow this year for displays
if ($year != $current_year) {
// We only allow this and the next year for displays
if ($year != $current_year && $year != $current_year+1) {
return FALSE;
}