Skip to content

Commit

Permalink
fix for error preventing adding of more choices in chat upate form
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesensei committed Dec 5, 2006
1 parent 0b82f5b commit a2e67a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/choice/lib.php
Expand Up @@ -104,7 +104,7 @@ function choice_update_instance($choice) {
$option->maxanswers = $choice->limit[$key];
}
$option->timemodified = time();
if (isset($choice->optionid[$key])){//existing choice record
if (isset($choice->optionid[$key]) && !empty($choice->optionid[$key])){//existing choice record
$option->id=$choice->optionid[$key];
if (isset($value) && $value <> '') {
update_record("choice_options", $option);
Expand Down

0 comments on commit a2e67a9

Please sign in to comment.