Skip to content

Commit

Permalink
Oops, put check in wrong spot for actual error we were getting.
Browse files Browse the repository at this point in the history
  • Loading branch information
LswaN58 committed Dec 2, 2024
1 parent 651777f commit c3463fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site/gamedata.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
$selected_year = isset($game_files) ? $game_files->getLastYear() : '';
$selected_month = isset($game_files) ? $game_files->getLastMonth() : '';
$selected_date = DateTimeImmutable::createFromFormat('Y-n-j|', $selected_year . '-' . $selected_month . '-1');
$month_name = $selected_date->format('F');
if ($selected_date != false) {
$month_name = $selected_date->format('F');
}
// Populate current, previous, and next dates
if ($selected_date != false && $game_files->getNextMonth($selected_date) == $selected_date) {
if ($game_files->getNextMonth($selected_date) == $selected_date) {
$next_disabled = 'disabled';
$next_month = $selected_date->modify('+1 month')->format('F');
} else {
Expand Down

0 comments on commit c3463fc

Please sign in to comment.