MDL-13812 choice options not shown when limit enabled.

This commit is contained in:
danmarsden 2008-03-06 19:56:29 +00:00
parent 05866d85d4
commit a5f35b9f5b

View 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];