From 866d33df9b650fd85f9b38f4cd85d9b0341759d8 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 30 Sep 2003 12:25:11 +0000 Subject: [PATCH] Added to avoid one notice when no news exist !! --- 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 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. -- 2.39.5