Skip to content

Commit

Permalink
Fixed -No answer- not checked for list_flexible_radio questions -- Th…
Browse files Browse the repository at this point in the history
…x to leochaton

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/stable_plus@3313 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed Sep 26, 2007
1 parent ae96bce commit c00a512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -955,7 +955,7 @@ function do_list_flexible_radio($ia)
{
$rowcounter++;
$answer .= "\t\t\t\t\t\t <input class='radio' type='radio' name='$ia[1]' id='answer$ia[1]NANS' value=' ' ";
if ((!isset($defexists) || $defexists != "Y") && (!isset($_SESSION[$ia[1]]) || $_SESSION[$ia[1]] == ""))
if ((!isset($defexists) || $defexists != "Y") && (!isset($_SESSION[$ia[1]]) || $_SESSION[$ia[1]] == "" || $_SESSION[$ia[1]] == " "))
{
$answer .= " checked='checked'"; //Check the "no answer" radio button if there is no default, and user hasn't answered this.
}
Expand Down

0 comments on commit c00a512

Please sign in to comment.