From f4fc2363ff8214d25f9beee12e5a7bfd1b54035f Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Wed, 31 Dec 2003 13:04:27 +0000 Subject: [PATCH] allow a year ahead to be displayed --- cal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cal.php b/cal.php index 4b2b29217..411a51ff1 100644 --- a/cal.php +++ b/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; }