updating old choices didn't work.

This commit is contained in:
danmarsden 2005-04-05 21:53:08 +00:00
parent d84c7b3e09
commit f6eb109943

View File

@ -111,7 +111,7 @@ function choice_update_instance($choice) {
if (strstr($name, "oldoption")) { // Old option if (strstr($name, "oldoption")) { // Old option
if ($value) { if ($value) {
$option = NULL; $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->text = $value;
$option->choiceid = $choice->id; $option->choiceid = $choice->id;
$option->timemodified = time(); $option->timemodified = time();