From 97a313023dcfcbedbda4e8b03946c1ebf428ec3f Mon Sep 17 00:00:00 2001 From: gbateson Date: Mon, 30 Oct 2006 08:55:35 +0000 Subject: [PATCH] correct the setting the fixed flag in JMatch quizzes --- mod/hotpot/template/v6.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/template/v6.php b/mod/hotpot/template/v6.php index 4ce607414a..d6e4d94e3a 100644 --- a/mod/hotpot/template/v6.php +++ b/mod/hotpot/template/v6.php @@ -724,7 +724,7 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { $str .= "D[$i] = new Array();\n"; $str .= "D[$i][0] = '".$this->js_safe($item['text'][0]['#'], true)."';\n"; $str .= "D[$i][1] = ".($i+1).";\n"; - $str .= "D[$i][2] = '".$this->int_value($item['fixed'][0]['#'])."';\n"; + $str .= "D[$i][2] = '".(empty($item['fixed'][0]['#']) ? 0 : 1)."';\n"; } return $str; } -- 2.39.5