From 543e1c58b594c379e248aaf240f764357ec09c2e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 22 Sep 2003 14:58:46 +0000 Subject: [PATCH] Take off one notice when there is no news in a course... --- course/format/topics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/format/topics.php b/course/format/topics.php index 070f52c809..94f569c743 100644 --- a/course/format/topics.php +++ b/course/format/topics.php @@ -291,7 +291,7 @@ /// Print all the news items. - if ($news) { + if (!empty($news)) { print_side_block_start(get_string("latestnews"), 210, "sideblocklatestnews"); echo ""; forum_print_latest_discussions($news->id, $course->newsitems, "minimal", "", false); -- 2.39.5