From 285199958bd4cfb84f8106f329d5a2c5a7790dda Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Tue, 3 Feb 2004 10:22:33 +0000 Subject: [PATCH] Added initalisation of $_SESSION['step'] if it doesn't exist. This may solve the bug_compat_42 issue. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@890 b72ed6b6-b9f8-46b5-92b4-906544132732 --- group.php | 1 + survey.php | 1 + 2 files changed, 2 insertions(+) diff --git a/group.php b/group.php index 7a7e373cf0f..8d535e2130e 100644 --- a/group.php +++ b/group.php @@ -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;} diff --git a/survey.php b/survey.php index bde81596d1c..40101ff6879 100644 --- a/survey.php +++ b/survey.php @@ -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;}