Browse files

updating old choices didn't work.

  • Loading branch information...
1 parent d84c7b3 commit f6eb109943bbb142687c90979cacc7032c5425f4 danmarsden committed Apr 5, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/choice/lib.php
View
2 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();

0 comments on commit f6eb109

Please sign in to comment.