Commit e9e7f530 authored by User expired's avatar User expired
Browse files

resolved code error concerning number of answers

parent 96b6f4e5
...@@ -317,7 +317,7 @@ switch($menu_mode) { ...@@ -317,7 +317,7 @@ switch($menu_mode) {
$sqlq .= $sql_answer_position; $sqlq .= $sql_answer_position;
$sqlq .= ' GROUP BY answer_question_id'; $sqlq .= ' GROUP BY answer_question_id';
if ($tsubset_answers > 0) { if ($tsubset_answers > 0) {
$sqlq .= ' HAVING (COUNT(answer_id)>='.($tsubset_answers-1).')'; $sqlq .= ' HAVING (COUNT(answer_id)='.($tsubset_answers-1).')'; //changed, ESM
} }
$sqlq .= ' )'; $sqlq .= ' )';
} elseif ($tsubset_type == 2) { } elseif ($tsubset_type == 2) {
...@@ -330,7 +330,7 @@ switch($menu_mode) { ...@@ -330,7 +330,7 @@ switch($menu_mode) {
$sqlq .= $sql_answer_position; $sqlq .= $sql_answer_position;
$sqlq .= ' GROUP BY answer_question_id'; $sqlq .= ' GROUP BY answer_question_id';
if ($tsubset_answers > 0) { if ($tsubset_answers > 0) {
$sqlq .= ' HAVING (COUNT(answer_id)>='.$tsubset_answers.')'; $sqlq .= ' HAVING (COUNT(answer_id)='.$tsubset_answers.')'; //changed, ESM
} }
$sqlq .= ' )'; $sqlq .= ' )';
} elseif ($tsubset_type == 4) { } elseif ($tsubset_type == 4) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment