From f6eb109943bbb142687c90979cacc7032c5425f4 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Tue, 5 Apr 2005 21:53:08 +0000 Subject: [PATCH] updating old choices didn't work. --- mod/choice/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();