From 30b8cc87e10f366407a02f926a42397a8baecdb9 Mon Sep 17 00:00:00 2001 From: gbateson Date: Wed, 19 Apr 2006 06:20:37 +0000 Subject: [PATCH] fixed bug which prevented display of JCross clues on PHP 5.1.2 --- mod/hotpot/template/v6.php | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/mod/hotpot/template/v6.php b/mod/hotpot/template/v6.php index 4863219514..02a0346ee1 100644 --- a/mod/hotpot/template/v6.php +++ b/mod/hotpot/template/v6.php @@ -1059,7 +1059,11 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { } function v6_expand_jcross_clues($direction) { // $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; $str = ''; for($r=0; $r<=$r_max; $r++) { @@ -1093,9 +1097,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { // jcross6.js_ function v6_expand_LetterArray() { - $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); $str = ''; @@ -1109,9 +1113,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { return $str; } function v6_expand_GuessArray() { - $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); $str = ''; @@ -1121,9 +1125,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { return $str; } function v6_expand_ClueNumArray() { - $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 @@ -1148,9 +1152,9 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { return $str; } function v6_expand_GridBody() { - $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; -- 2.39.5