Fixed typo preventing the editing of multianswer questions.

This commit is contained in:
gustav_delius 2006-04-11 07:16:10 +00:00
parent 12ef2c40d9
commit 424dba12cf

View File

@ -59,7 +59,7 @@ class embedded_cloze_qtype extends default_questiontype {
// will also create difficulties if questiontype specific tables reference the id.
// First we get all the existing wrapped questions
if (!$oldwrappedids = get_field('question_multianswers', 'sequence', 'question', $question->id)) {
if (!$oldwrappedids = get_field('question_multianswer', 'sequence', 'question', $question->id)) {
$oldwrappedids = array();
} else {
$oldwrappedids = explode(',', $oldwrappedids);