From: moodler Date: Wed, 27 Aug 2003 11:27:40 +0000 (+0000) Subject: FIx for the display of the help window for the current scale X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fa01ae8be09b851b0792be7c7ce6cfa674159613;p=moodle.git FIx for the display of the help window for the current scale --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 1a1262b66f..51b8777c78 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2010,7 +2010,11 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode) { if ($ratings) { echo "
"; - 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 "
"; echo ""; }