Fix notice in essay question.

This commit is contained in:
tjhunt
2007-07-06 13:30:16 +00:00
parent aaff71daf4
commit 604a618428
+1 -1
View File
@@ -75,7 +75,7 @@ class question_essay_qtype extends default_questiontype {
// feedback handling
$feedback = '';
if ($options->feedback) {
if ($options->feedback && !empty($answers)) {
foreach ($answers as $answer) {
$feedback = format_text($answer->feedback, '', $formatoptions, $cmoptions->course);
}