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); } }