]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18034 MDL-18035 correcting typo
authorpichetp <pichetp>
Fri, 20 Feb 2009 20:52:32 +0000 (20:52 +0000)
committerpichetp <pichetp>
Fri, 20 Feb 2009 20:52:32 +0000 (20:52 +0000)
 saving answers data in $question->answerif they come from edit from.

question/type/calculated/questiontype.php

index 26b604c6b7ad159e8e58385d7ff9151c3fbca480..31428e287b1acd7d1fc3504de1dd16f5a1b599e1 100644 (file)
@@ -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;
         }