From 29fbf0d5b80e19b0ededb8fbeeaaafed61264e0d Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Wed, 16 Nov 2005 22:20:43 +0000 Subject: [PATCH] My moodle - forums shouldn't print the forum header and all their nothing new stuff. Only talk when you've got something to say ;) --- mod/forum/lib.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 1b1aaca1bb2..292385e0273 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -737,9 +737,7 @@ function forum_user_complete($course, $user, $mod, $forum) { function forum_print_overview($course,$lastaccess) { global $USER, $CFG; - print_heading(get_string("modulenameplural", "forum")); if (!$forums = get_all_instances_in_course("forum", $course)) { - echo get_string('nothingnew','forum',$course->fullname); return; } // get all forum logs in ONE query (much better!) @@ -779,9 +777,8 @@ function forum_print_overview($course,$lastaccess) { } } if (!empty($str)) { + print_heading(get_string("modulenameplural", "forum")); echo $str; - } else { - echo get_string('nothingnew','forum',$course->fullname); } }