diff --git a/question.php b/question.php index 81ae151b5c7..b52e28272f5 100644 --- a/question.php +++ b/question.php @@ -157,11 +157,16 @@ } else { - $currentquestion--; // if we reach -1, this means we must go back to first page - if ($currentquestion >= 0) + if ($currentquestion > 0) { + $currentquestion--; // if we reach -1, this means we must go back to first page + if(isset($_SESSION['fieldarray'][$currentquestion])) + { + $ia=$_SESSION['fieldarray'][$currentquestion]; + } $_SESSION['step']--; } + else { $_SESSION['step']=0; display_first_page();