From 7e9d920386b1435cd304eb4b1db4ac7a8bac7cab Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Fri, 11 Oct 2013 10:29:04 +1100 Subject: [PATCH] Fix starting survey in a negative percent --- include/limesurvey/group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/limesurvey/group.php b/include/limesurvey/group.php index 986428bd..1a48a773 100644 --- a/include/limesurvey/group.php +++ b/include/limesurvey/group.php @@ -84,7 +84,7 @@ if ($previewgrp) else { //RUN THIS IF THIS IS THE FIRST TIME , OR THE FIRST PAGE ######################################## - if (!isset($_SESSION['step'])) // || !$_SESSION['step']) - don't do this for step 0, else rebuild the session + if (!isset($_SESSION['step']) || $_SESSION['step'] == -1) // || !$_SESSION['step']) - don't do this for step 0, else rebuild the session { $totalquestions = buildsurveysession(); LimeExpressionManager::StartSurvey($thissurvey['sid'], $surveyMode, $surveyOptions, false,$LEMdebugLevel);