diff --git a/public/index.php b/public/index.php index e75f3de..6ab514e 100644 --- a/public/index.php +++ b/public/index.php @@ -42,10 +42,10 @@ $chosen_date_time = new DateTime($chosen_date);
modify('-1 month'); if ($dates['first'] < $chosen_date_time) { - echo ""; + echo ""; } else { + $chosen_date_time->modify('-1 month'); echo ''; } $chosen_date_time->modify('+1 month');