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) {
$sqlq .= $sql_answer_position;
$sqlq .= ' GROUP BY answer_question_id';
if ($tsubset_answers > 0) {
$sqlq .= ' HAVING (COUNT(answer_id)>='.($tsubset_answers-1).')';
$sqlq .= ' HAVING (COUNT(answer_id)='.($tsubset_answers-1).')'; //changed, ESM
}
$sqlq .= ' )';
} elseif ($tsubset_type == 2) {
......@@ -330,7 +330,7 @@ switch($menu_mode) {
$sqlq .= $sql_answer_position;
$sqlq .= ' GROUP BY answer_question_id';
if ($tsubset_answers > 0) {
$sqlq .= ' HAVING (COUNT(answer_id)>='.$tsubset_answers.')';
$sqlq .= ' HAVING (COUNT(answer_id)='.$tsubset_answers.')'; //changed, ESM
}
$sqlq .= ' )';
} 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