FIx for the display of the help window for the current scale

This commit is contained in:
moodler 2003-08-27 11:27:40 +00:00
parent d0117715f3
commit fa01ae8be0

View File

@ -2010,7 +2010,11 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode) {
if ($ratings) {
echo "<center><input type=\"submit\" value=\"".get_string("sendinratings", "forum")."\">";
print_scale_menu_helpbutton($course->id, $scale);
if ($forum->scale < 0) {
if ($scale = get_record("scale", "id", abs($forum->scale))) {
print_scale_menu_helpbutton($course->id, $scale );
}
}
echo "</center>";
echo "</form>";
}