diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 51f1c1bf684..d08cb6efa32 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -111,7 +111,7 @@ function choice_update_instance($choice) { if (strstr($name, "oldoption")) { // Old option if ($value) { $option = NULL; - $option->id = substr($name, 10); // Get the ID of the answer that needs to be updated. + $option->id = substr($name, 9); // Get the ID of the answer that needs to be updated. $option->text = $value; $option->choiceid = $choice->id; $option->timemodified = time();