From: stronk7 Date: Tue, 30 Sep 2003 12:25:11 +0000 (+0000) Subject: Added to avoid one notice when no news exist !! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=866d33df9b650fd85f9b38f4cd85d9b0341759d8;p=moodle.git Added to avoid one notice when no news exist !! --- diff --git a/course/format/topics.php b/course/format/topics.php index 94f569c743..ded8580bca 100644 --- a/course/format/topics.php +++ b/course/format/topics.php @@ -286,7 +286,7 @@ } - if ($news or $course->showrecent) { + if (!empty($news) or $course->showrecent) { echo ""; /// Print all the news items.