fixed regression caused by patch for MDL-15105

This commit is contained in:
danmarsden
2009-01-12 02:27:53 +00:00
parent f66e8b31e3
commit 3b3370febf
+2 -2
View File
@@ -123,9 +123,9 @@
$status = true;
$choice_answers = $DB->get_records("choice_options", array("choiceid" => $choice),"id");
$choice_options = $DB->get_records("choice_options", array("choiceid" => $choice),"id");
//If there is options
if ($choice_options) {
if (!empty($choice_options)) {
//Write start tag
$status =fwrite ($bf,start_tag("OPTIONS",4,true));
//Iterate over each answer