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 +}