diff --git a/qanda.php b/qanda.php
index 89a55c37478..842a0d33fd2 100644
--- a/qanda.php
+++ b/qanda.php
@@ -1019,7 +1019,7 @@ function do_gender($ia)
function do_array_5point($ia)
{
- global $dbprefix;
+ global $dbprefix, $shownoanswer;
$qquery = "SELECT other FROM {$dbprefix}questions WHERE qid=".$ia[0];
$qresult = mysql_query($qquery);
while($qrow = mysql_fetch_array($qresult)) {$other = $qrow['other'];}
@@ -1034,7 +1034,7 @@ function do_array_5point($ia)
{
$answer .= "\t\t\t\t\t
$xc
\n";
}
- if ($ia[6] != "Y") //Question is not mandatory
+ if ($ia[6] != "Y" && $shownoanswer == 1) //Question is not mandatory
{
$answer .= "\t\t\t\t\t
\n";
}
- if ($ia[6] != "Y") //Question is not mandatory
+ if ($ia[6] != "Y" && $shownoanswer == 1) //Question is not mandatory
{
$answer .= "\t\t\t\t\t