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:
4
cal.php
4
cal.php
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user