Skip to content
Browse files

corrected the setting of fixed flag in JMatch quizzes

  • Loading branch information...
1 parent 45c65f2 commit b3abd772356b5d9dc9f1b100b034ded5eef38c87 gbateson committed Oct 30, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/template/v6.php
View
2 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 b3abd77

Please sign in to comment.
Something went wrong with that request. Please try again.