mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 07:41:02 +01:00
missed one.
This commit is contained in:
parent
acaf7b86e3
commit
3e11b9f44a
@ -128,7 +128,9 @@ function choice_update_instance($choice) {
|
||||
$option = NULL;
|
||||
$option->text = $value;
|
||||
$option->choiceid = $choice->id;
|
||||
$option->maxanswers = $choice->{'newlimit'.substr($name, 9)};
|
||||
if (isset($choice->{'newlimit'.substr($name, 9)})) {
|
||||
$option->maxanswers = $choice->{'newlimit'.substr($name, 9)};
|
||||
}
|
||||
$option->timemodified = time();
|
||||
insert_record("choice_options", $option);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user