]> git.mjollnir.org Git - moodle.git/commitdiff
Don't throw a php error when there are no question answers in the default question...
authorgustav_delius <gustav_delius>
Sun, 30 Apr 2006 17:13:44 +0000 (17:13 +0000)
committergustav_delius <gustav_delius>
Sun, 30 Apr 2006 17:13:44 +0000 (17:13 +0000)
question/type/questiontype.php

index f74274bbb4c03388925a1ac0970fd2cc7e2c1231..d21c1ce31d3734430ab8519ac66b67916fa6f232 100644 (file)
@@ -168,11 +168,8 @@ class default_questiontype {
             $question->options = new object;
         }
         // The default implementation attaches all answers for this question
-        if (!$question->options->answers = get_records('question_answers', 'question',
-         $question->id)) {
-           //notify('Error: Missing question answers!');
-           return false;
-        }
+        $question->options->answers = get_records('question_answers', 'question',
+         $question->id);
         return true;
     }