From: danmarsden Date: Tue, 4 Apr 2006 23:36:13 +0000 (+0000) Subject: missed one. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3e11b9f44aaf0dfd02d811cce72c3184efd010e6;p=moodle.git missed one. --- 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); }