From: danmarsden Date: Thu, 6 Mar 2008 19:56:29 +0000 (+0000) Subject: MDL-13812 choice options not shown when limit enabled. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a5f35b9f5b75326e0210448dea8c793ee048bf14;p=moodle.git MDL-13812 choice options not shown when limit enabled. --- diff --git a/mod/choice/lib.php b/mod/choice/lib.php index f0ce518b9d..1feb6bfb03 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -140,7 +140,7 @@ function choice_show_form($choice, $user, $cm, $allresponses) { $context = get_context_instance(CONTEXT_MODULE, $cm->id); foreach ($choice->option as $optionid => $text) { - if (isset($text) && isset($allresponses[$optionid])) { //make sure there are no dud entries in the db with blank text values. + if (isset($text)) { //make sure there are no dud entries in the db with blank text values. $cdisplay[$aid]->optionid = $optionid; $cdisplay[$aid]->text = $text; $cdisplay[$aid]->maxanswers = $choice->maxanswers[$optionid];