]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from stable
authormoodler <moodler>
Sat, 16 Oct 2004 17:30:51 +0000 (17:30 +0000)
committermoodler <moodler>
Sat, 16 Oct 2004 17:30:51 +0000 (17:30 +0000)
mod/quiz/lib.php

index 4abfa8ce37ebf2dd4b335515abb565a0e2ca5e2c..936a7da8eeb397d9a4c025a6e358085f922d0f7f 100644 (file)
@@ -1761,6 +1761,10 @@ function quiz_grade_responses($quiz, $questions) {
     $result->sumgrades = 0.0;
     foreach ($questions as $qid => $question) {
 
+        if (empty($question->qtype)) {
+            continue;
+        }
+
         $resultdetails = $QUIZ_QTYPES[$question->qtype]->grade_response
                                 ($question, quiz_qtype_nameprefix($question));