Skip to content

Commit

Permalink
Can now delete answers in multiple choice questions, fixing bug 3707
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Jul 7, 2005
1 parent c9ab452 commit b974afa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mod/quiz/questiontypes/multichoice/questiontype.php
Expand Up @@ -26,8 +26,7 @@ function get_question_options(&$question) {
return false;
}

if (!$question->options->answers = get_records('quiz_answers', 'question',
$question->id)) {
if (!$question->options->answers = get_records_select('quiz_answers', 'id IN ('.$question->options->answers.')')) {
notify('Error: Missing question answers!');
return false;
}
Expand Down

0 comments on commit b974afa

Please sign in to comment.