From ae90a8a2c3ed509b44a14a5c8299d3742011cc7a Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 16 Nov 2021 11:27:25 +0100 Subject: [PATCH] Removed dateToInt constrained for year --- lib/Layout/Layout.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Layout/Layout.php b/lib/Layout/Layout.php index ec4320bbc..385128b59 100644 --- a/lib/Layout/Layout.php +++ b/lib/Layout/Layout.php @@ -29,8 +29,7 @@ class Layout extends mfLayout { $year = intval($m[3]); if($day > 31 || $day < 1 - || $month > 12 || $month < 1 - || $year > date('Y')+1 || $year < date('Y')) + || $month > 12 || $month < 1) { return false; } @@ -43,4 +42,4 @@ class Layout extends mfLayout { public static function intToDate($int) { return date("d.m.Y", $int); } -} \ No newline at end of file +}