diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index cd49575b8d3..243a2d908cb 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -195,7 +195,6 @@ class question_numerical_qtype extends question_shortanswer_qtype { $DB->update_record('question_answers', $answer); // Set up the options object - $options = array_shift($oldoptions); if (!$options = array_shift($oldoptions)) { $options = new stdClass(); }