]> git.mjollnir.org Git - moodle.git/commitdiff
Take off one notice when there is no news in a course...
authorstronk7 <stronk7>
Mon, 22 Sep 2003 14:58:46 +0000 (14:58 +0000)
committerstronk7 <stronk7>
Mon, 22 Sep 2003 14:58:46 +0000 (14:58 +0000)
course/format/topics.php

index 070f52c8096682efe180282775fd6bf7b475c402..94f569c7436b6e9c95960fb096b9ec53549056f1 100644 (file)
 
         /// Print all the news items.
 
-        if ($news) {
+        if (!empty($news)) {
             print_side_block_start(get_string("latestnews"), 210, "sideblocklatestnews");
             echo "<font size=\"-2\">";
             forum_print_latest_discussions($news->id, $course->newsitems, "minimal", "", false);