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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user