Permalink
Browse files

corrected the settiing of fixed flag in JMatch quizzes

  • Loading branch information...
1 parent 5dc9e87 commit 2456a9fbf6fc910fc6c0267a783e00e73cf59e49 gbateson committed Oct 30, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/template/v6.php
@@ -724,7 +724,7 @@ function v6_expand_DragArray() {
$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;
}

0 comments on commit 2456a9f

Please sign in to comment.