1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-10 18:27:20 +02:00

Don't throw a php error when there are no question answers in the default question type.

This commit is contained in:
gustav_delius 2006-04-30 17:13:44 +00:00
parent 4572d78f71
commit ed28abca24

@ -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;
}