]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13812 choice options not shown when limit enabled.
authordanmarsden <danmarsden>
Thu, 6 Mar 2008 19:56:29 +0000 (19:56 +0000)
committerdanmarsden <danmarsden>
Thu, 6 Mar 2008 19:56:29 +0000 (19:56 +0000)
mod/choice/lib.php

index f0ce518b9db81fb0ce0525f6c0c50f0a05d7200f..1feb6bfb03bf2fd5fcb3d2dbdd76637d12bc6db9 100644 (file)
@@ -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];