diff --git a/public/index.php b/public/index.php index 90b65d5..e75f3de 100644 --- a/public/index.php +++ b/public/index.php @@ -42,12 +42,14 @@ $chosen_date_time = new DateTime($chosen_date);
modify('-1 month'); if ($dates['first'] < $chosen_date_time) { - echo ""; + echo ""; } else { echo ''; } - echo '' . $chosen_date_time->modify('+1 month')->format('Y-m') . ''; + $chosen_date_time->modify('+1 month'); + echo '' . $chosen_date_time->format('Y-m') . ''; if ($dates['last'] > $chosen_date_time->modify('+1 month')) { echo ""; } else {