Skip to content

Commit

Permalink
Fixed issue 05163: Clicking on "<< Previous" in survey navigation jum…
Browse files Browse the repository at this point in the history
…ped back to square one

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@10118 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Andrie de Vries committed May 25, 2011
1 parent b272377 commit 39ca2c3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions question.php
Expand Up @@ -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();
Expand Down

0 comments on commit 39ca2c3

Please sign in to comment.