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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user