From: stronk7 Date: Mon, 22 Sep 2003 14:58:46 +0000 (+0000) Subject: Take off one notice when there is no news in a course... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=543e1c58b594c379e248aaf240f764357ec09c2e;p=moodle.git Take off one notice when there is no news in a course... --- 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);