fixed bug which prevented display of JCross clues on PHP 5.1.2

This commit is contained in:
gbateson 2006-04-19 06:20:37 +00:00
parent feb00a54d0
commit 30b8cc87e1

View File

@ -1059,7 +1059,11 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
} }
function v6_expand_jcross_clues($direction) { function v6_expand_jcross_clues($direction) {
// $direction: A(cross) or D(own) // $direction: A(cross) or D(own)
$this->v6_get_jcross_grid($row=NULL, $r_max=0, $c_max=0); $row = NULL;
$r_max = 0;
$c_max = 0;
$this->v6_get_jcross_grid($row, $r_max, $c_max);
$i = 0; // clue index; $i = 0; // clue index;
$str = ''; $str = '';
for($r=0; $r<=$r_max; $r++) { for($r=0; $r<=$r_max; $r++) {
@ -1093,9 +1097,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
// jcross6.js_ // jcross6.js_
function v6_expand_LetterArray() { function v6_expand_LetterArray() {
$row=NULL; $row = NULL;
$r_max=0; $r_max = 0;
$c_max=0; $c_max = 0;
$this->v6_get_jcross_grid($row, $r_max, $c_max); $this->v6_get_jcross_grid($row, $r_max, $c_max);
$str = ''; $str = '';
@ -1109,9 +1113,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
return $str; return $str;
} }
function v6_expand_GuessArray() { function v6_expand_GuessArray() {
$row=NULL; $row = NULL;
$r_max=0; $r_max = 0;
$c_max=0; $c_max = 0;
$this->v6_get_jcross_grid($row, $r_max, $c_max); $this->v6_get_jcross_grid($row, $r_max, $c_max);
$str = ''; $str = '';
@ -1121,9 +1125,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
return $str; return $str;
} }
function v6_expand_ClueNumArray() { function v6_expand_ClueNumArray() {
$row=NULL; $row = NULL;
$r_max=0; $r_max = 0;
$c_max=0; $c_max = 0;
$this->v6_get_jcross_grid($row, $r_max, $c_max); $this->v6_get_jcross_grid($row, $r_max, $c_max);
$i = 0; // clue index $i = 0; // clue index
@ -1148,9 +1152,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
return $str; return $str;
} }
function v6_expand_GridBody() { function v6_expand_GridBody() {
$row=NULL; $row = NULL;
$r_max=0; $r_max = 0;
$c_max=0; $c_max = 0;
$this->v6_get_jcross_grid($row, $r_max, $c_max); $this->v6_get_jcross_grid($row, $r_max, $c_max);
$i = 0; // clue index; $i = 0; // clue index;