Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modification to make mandatory multiple options work
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@851 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 29, 2004
1 parent 624976e commit 30f9e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion survey.php
Expand Up @@ -143,7 +143,7 @@
else{$multiname="MULTI$cmfns[$mi]";}
//$dccm="display$ccm";
$dccm="display$cmfns[$mi]";
if (($_SESSION[$ccm] == "0" || $_SESSION[$ccm]) && $_POST[$dccm] == "on")//There is an answer
if (isset($_SESSION[$ccm]) && ($_SESSION[$ccm] == "0" || $_SESSION[$ccm]) && $_POST[$dccm] == "on")//There is an answer
{
}
elseif ((isset($_POST[$dccm]) && $_POST[$dccm] == "on") && (!isset($_POST[$multiname]) || !$_POST[$multiname])) //Question is on, there is no answer, but it's a multiple
Expand Down

0 comments on commit 30f9e08

Please sign in to comment.