mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
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:
parent
3cc633011d
commit
86cc5db12a
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user