Skip to content
Snippets Groups Projects
Commit f9f2a867 authored by Ewald's avatar Ewald
Browse files

bugfix: 10 instaed of 9 difficulties

parent 49a3b1e0
No related branches found
No related tags found
No related merge requests found
......@@ -257,9 +257,9 @@ switch($menu_mode) {
if ($tsubset_type == 3) {
// free-text questions do not have alternative answers to display
$tsubset_answers = 0;
} elseif (($tsubset_answers < 2)) {
} elseif (($tsubset_answers < 2)) {
// questions must have at least 2 alternative answers
$tsubset_answers = 999; //select all answers
$tsubset_answers = 999; //select all answers
}
// create a comma separated list of subjects IDs
$subjids = '';
......@@ -366,7 +366,7 @@ switch($menu_mode) {
}
if (!empty($subject_id)) {
// insert new subject
$nmax = ($alldifficulties == true ? 9 : 1);
$nmax = ($alldifficulties == true ? 10 : 1);
$tquanorig = $tsubset_quantity;
for ($n=1; $n <= $nmax; $n++) {
$tquan = $tquanorig;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment