"MDL-15573, question bank the php4 compatiable code will broke in php5"
authorDongsheng Cai <unoter@gmail.com>
Wed, 13 Oct 2010 04:13:46 +0000 (04:13 +0000)
committerDongsheng Cai <unoter@gmail.com>
Wed, 13 Oct 2010 04:13:46 +0000 (04:13 +0000)
question/type/calculated/questiontype.php

index 8baf420..8552ebc 100644 (file)
@@ -906,7 +906,6 @@ class question_calculated_qtype extends default_questiontype {
             $numericalquestion->options->answers[$key] = clone($answer);
         }
         foreach ($numericalquestion->options->answers as $key => $answer) {
-            $answer = &$numericalquestion->options->answers[$key]; // for PHP 4.x
             $answer->answer = $this->substitute_variables_and_eval($answer->answer,
                 $state->options->dataset);
         }