]> git.mjollnir.org Git - moodle.git/commitdiff
FIx for the display of the help window for the current scale
authormoodler <moodler>
Wed, 27 Aug 2003 11:27:40 +0000 (11:27 +0000)
committermoodler <moodler>
Wed, 27 Aug 2003 11:27:40 +0000 (11:27 +0000)
mod/forum/lib.php

index 1a1262b66f16649d9d22fdfc88c63072c0326bca..51b8777c783c20a56c1dcf1a02e861772cb226c4 100644 (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>";
     }