From 1491499d247c6810deb9bfcc55e9a735bd998123 Mon Sep 17 00:00:00 2001 From: mattbk Date: Tue, 3 Nov 2015 08:32:15 -0600 Subject: [PATCH] Unset $_SESSION['results'] on the start page --- index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.php b/index.php index 95cd844..3baae56 100755 --- a/index.php +++ b/index.php @@ -75,6 +75,7 @@ switch ($mode) { case 'start': $template = 'index.html.twig'; $variables['start_url'] = 'index.php?mode=phase&phase='.$settings->phases[$index]; + unset($_SESSION['results']); break; case 'phase': $template = 'change.html.twig'; @@ -90,6 +91,7 @@ switch ($mode) { case 'phase_next': $template = 'next.html.twig'; $variables['next_url'] = 'index.php?mode=phase&phase='.$settings->phases[$index]; + $variables['prev_url'] = 'index.php?mode=phase&phase='.$settings->phases[$index-1]; $variables['step_count'] = $index; break; case 'finish':