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:
+4
-2
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user