Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01e8532
)
"MDL-15573, question bank the php4 compatiable code will broke in php5"
author
Dongsheng Cai
<unoter@gmail.com>
Wed, 13 Oct 2010 04:13:46 +0000
(
04:13
+0000)
committer
Dongsheng Cai
<unoter@gmail.com>
Wed, 13 Oct 2010 04:13:46 +0000
(
04:13
+0000)
question/type/calculated/questiontype.php
patch
|
blob
|
blame
|
history
diff --git
a/question/type/calculated/questiontype.php
b/question/type/calculated/questiontype.php
index
8baf420
..
8552ebc
100644
(file)
--- a/
question/type/calculated/questiontype.php
+++ b/
question/type/calculated/questiontype.php
@@
-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);
}