From 6ab12626881b270b83248d9dae18fdeeb731fc41 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Sat, 31 Jan 2004 13:25:44 +0000 Subject: [PATCH] Fixed mandatory conditional question bug that had arisen with 0.98rc6 git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@878 b72ed6b6-b9f8-46b5-92b4-906544132732 --- question.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question.php b/question.php index 2d74730b64b..d1f4a9fe1a5 100644 --- a/question.php +++ b/question.php @@ -132,9 +132,10 @@ { $dccm="display".$cmfns[0]; } - if ((isset($_POST[$dccm]) && $_POST[$dccm] == "on") && (!isset($_SESSION[$ccm]) || $_SESSION[$ccm] != "0") && (!isset($_POST[$multiname]) || !$_POST[$multiname])) + if ((isset($_POST[$dccm]) && $_POST[$dccm] == "on") && !isset($_SESSION[$ccm]) && (!isset($_POST[$multiname]) || !$_POST[$multiname])) { //One of the conditional mandatory questions was on, but hasn't been answered + //echo "Got here -".$_POST[$dccm]."-".$_SESSION[$ccm]; exit; if (isset($_POST['move']) && $_POST['move'] == " << "._PREV." ") {$_SESSION['step'] = $_POST['thisstep'];} if (isset($_POST['move']) && $_POST['move'] == " "._NEXT." >> ") {$_SESSION['step'] = $_POST['thisstep'];} if (isset($_POST['move']) && $_POST['move'] == " "._LAST." ") {$_SESSION['step'] = $_POST['thisstep']; $_POST['move'] == " "._NEXT." >> ";} @@ -731,7 +732,6 @@ $percentcomplete = makegraph($_SESSION['step'], $_SESSION['totalsteps']); //READ TEMPLATES, INSERT DATA AND PRESENT PAGE -echo "\n"; foreach(file("$thistpl/startpage.pstpl") as $op) { echo templatereplace($op);