]> git.mjollnir.org Git - moodle.git/commitdiff
Removed a notice
authorgustav_delius <gustav_delius>
Sun, 19 Mar 2006 18:33:35 +0000 (18:33 +0000)
committergustav_delius <gustav_delius>
Sun, 19 Mar 2006 18:33:35 +0000 (18:33 +0000)
question/questiontypes/essay/questiontype.php

index a571073e5b171a2d81dd5901a5a9f4b4b5ac1dc2..e4e0b551bee6b5298f16a2d0fdf1194777eb4a5e 100644 (file)
@@ -173,7 +173,7 @@ class question_essay_qtype extends quiz_default_questiontype {
     function grade_responses(&$question, &$state, $cmoptions) {
         $state->raw_grade = 0;
         // if a fraction is submitted, then we use it, otherwise the raw grade is 0
-        if ($state->responses['fraction']) {
+        if (isset($state->responses['fraction']) and $state->responses['fraction']) {
             $state->raw_grade = $state->responses['fraction'];
             $state->options->graded = 1;
             // mark the state as graded