Skip to content

Commit

Permalink
Modified to NOT add a mandatory entry for boilerplate questions (some…
Browse files Browse the repository at this point in the history
…thing that shouldn't be possible to set anyway, but just in case!)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1000 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 25, 2004
1 parent c80ee95 commit 6fe88b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qanda.php
Expand Up @@ -97,14 +97,17 @@ function create_mandatorylist($ia)
case "H":
$thismandatory=setman_questionandcode($ia);
break;
case "X":
//Do nothing - boilerplate questions CANNOT be mandatory
break;
default:
$thismandatory=setman_normal($ia);
}
if ($ia[7] != "Y") //Question is not conditional - addto mandatory arrays
if ($ia[7] != "Y" && isset($thismandatory)) //Question is not conditional - addto mandatory arrays
{
$mandatory=$thismandatory;
}
if ($ia[7] == "Y") //Question IS conditional - add to conmandatory arrays
if ($ia[7] == "Y" && isset($thismandatory)) //Question IS conditional - add to conmandatory arrays
{
$conmandatory=$thismandatory;
}
Expand Down

0 comments on commit 6fe88b1

Please sign in to comment.