From b21aea74089c4e66332af4bf2ee765c83bad3e32 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Sun, 14 Nov 2010 03:51:35 +0000 Subject: [PATCH] MDL-25104 removing unnecessary $options = array_shift($oldoptions) line 192 that generates 2 question_numerical records, this was added by inadvertence in the last many lines modifications --- question/type/numerical/questiontype.php | 1 - 1 file changed, 1 deletion(-) 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(); } -- 2.43.0