From d38bd8c1bebde92510f4ab60c958cb6ca431c96b Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 19 Mar 2006 18:33:35 +0000 Subject: [PATCH] Removed a notice --- question/questiontypes/essay/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/questiontypes/essay/questiontype.php b/question/questiontypes/essay/questiontype.php index a571073e5b..e4e0b551be 100644 --- a/question/questiontypes/essay/questiontype.php +++ b/question/questiontypes/essay/questiontype.php @@ -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 -- 2.39.5