MDL-25104 removing unnecessary $options = array_shift($oldoptions) line 192 that...
authorPierre Pichet <pichet.pierre@uqam.ca>
Sun, 14 Nov 2010 03:51:35 +0000 (03:51 +0000)
committerPierre Pichet <pichet.pierre@uqam.ca>
Sun, 14 Nov 2010 03:51:35 +0000 (03:51 +0000)
this was added by inadvertence  in the last many lines modifications

question/type/numerical/questiontype.php

index cd49575..243a2d9 100644 (file)
@@ -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();
             }