get_record(...)->field generates a parse error on my machine, so I split

it into two steps where it occurs.
This commit is contained in:
thepurpleblob 2005-04-15 08:13:27 +00:00
parent 3cc633011d
commit 86cc5db12a

View File

@ -343,7 +343,8 @@
echo $countanswers;
echo "<br>";
echo get_string("limit", "choice").":";
echo get_record("choice_options", "id", $optionid)->maxanswers;
$choice_option = get_record("choice_options", "id", $optionid);
echo $choice_option->maxanswers;
echo "</td>";
}
}
@ -415,7 +416,8 @@
echo $column[$optionid];
echo "<br>";
echo get_string("limit", "choice").":";
echo get_record("choice_options", "id", $optionid)->maxanswers;
$choice_option = get_record("choice_options", "id", $optionid);
echo $choice_option->maxanswers;
echo "</td>";
} else {
echo $column[$optionid];