From 3e11b9f44aaf0dfd02d811cce72c3184efd010e6 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Tue, 4 Apr 2006 23:36:13 +0000 Subject: [PATCH] missed one. --- mod/choice/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 60588a8aab..75eca5bd09 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -128,7 +128,9 @@ function choice_update_instance($choice) { $option = NULL; $option->text = $value; $option->choiceid = $choice->id; - $option->maxanswers = $choice->{'newlimit'.substr($name, 9)}; + if (isset($choice->{'newlimit'.substr($name, 9)})) { + $option->maxanswers = $choice->{'newlimit'.substr($name, 9)}; + } $option->timemodified = time(); insert_record("choice_options", $option); } -- 2.39.5