From: pichetp Date: Fri, 20 Feb 2009 20:52:32 +0000 (+0000) Subject: MDL-18034 MDL-18035 correcting typo X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f7fa6874f7f6c3fd070abe451ea79507bdd6824c;p=moodle.git MDL-18034 MDL-18035 correcting typo saving answers data in $question->answerif they come from edit from. --- diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 26b604c6b7..31428e287b 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -131,7 +131,7 @@ class question_calculated_qtype extends default_questiontype { // Get old answers: global $CFG, $DB; - if (isset($question->answer) && !isset($question->asnwers)) { + if (isset($question->answer) && !isset($question->answers)) { $question->answers = $question->answer; }