Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

corrected the setting of fixed flag in JMatch quizzes

  • Loading branch information...
commit b3abd772356b5d9dc9f1b100b034ded5eef38c87 1 parent 45c65f2
gbateson authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.