From a2e67a9a47672837afdf5e91c96d8c341955f7d4 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Tue, 5 Dec 2006 13:32:32 +0000 Subject: [PATCH] fix for error preventing adding of more choices in chat upate form --- 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 65164e3c56..5658d87a8c 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -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); -- 2.39.5