Skip to content

Commit

Permalink
Added initalisation of $_SESSION['step'] if it doesn't exist. This ma…
Browse files Browse the repository at this point in the history
…y solve the bug_compat_42 issue.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@890 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Feb 3, 2004
1 parent c63cc9d commit 2851999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions group.php
Expand Up @@ -35,6 +35,7 @@
*/

//Move current step ###########################################################################
if (!isset($_SESSION['step'])) {$_SESSION['step'] = 0;}
if (!isset($_POST['thisstep'])) {$_POST['thisstep'] = "";}
if (!isset($gl)) {$gl=array("null");}
if (isset($_POST['move']) && $_POST['move'] == " << "._PREV." ") {$_SESSION['step'] = $_POST['thisstep']-1;}
Expand Down
1 change: 1 addition & 0 deletions survey.php
Expand Up @@ -35,6 +35,7 @@
*/

//Move current step
if (!isset($_SESSION['step'])) {$_SESSION['step']=0;}
if (isset($_POST['move']) && $_POST['move'] == " << "._PREV." ") {$_SESSION['step'] = $_POST['thisstep']-1;}
if (isset($_POST['move']) && $_POST['move'] == " "._NEXT." >> ") {$_SESSION['step'] = $_POST['thisstep']+1;}
if (isset($_POST['move']) && $_POST['move'] == " "._LAST." ") {$_SESSION['step'] = $_POST['thisstep']+1;}
Expand Down

0 comments on commit 2851999

Please sign in to comment.