Skip to content

Commit

Permalink
Fixed mandatory conditional question bug that had arisen with 0.98rc6
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@878 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 31, 2004
1 parent ffb688b commit 6ab1262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question.php
Expand Up @@ -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." >> ";}
Expand Down Expand Up @@ -731,7 +732,6 @@
$percentcomplete = makegraph($_SESSION['step'], $_SESSION['totalsteps']);

//READ TEMPLATES, INSERT DATA AND PRESENT PAGE
echo "<html>\n";
foreach(file("$thistpl/startpage.pstpl") as $op)
{
echo templatereplace($op);
Expand Down

0 comments on commit 6ab1262

Please sign in to comment.