diff --git a/src/controllers/IndexController.php b/src/controllers/IndexController.php index 10f9971f..733c8b09 100644 --- a/src/controllers/IndexController.php +++ b/src/controllers/IndexController.php @@ -124,6 +124,7 @@ class="fb-cta cta--yellow"> ); $game = $config_game->getValue(); $next_game = $config_next_game->getValue(); + $remaining = 0; if ($game === '1') { $next_game_text = tr('In Progress'); $countdown = array('--', '--', '--', '--'); @@ -137,6 +138,7 @@ class="fb-cta cta--yellow"> $now = new DateTime('now'); $countdown_diff = $now->diff($game_start); $countdown = explode('-', $countdown_diff->format('%d-%h-%i-%s')); + $remaining = $game_start->getTimestamp() - $now->getTimestamp(); } return
@@ -149,21 +151,21 @@ class=

{$next_game_text}

-