]> git.mjollnir.org Git - moodle.git/commitdiff
Added to avoid one notice when no news exist !!
authorstronk7 <stronk7>
Tue, 30 Sep 2003 12:25:11 +0000 (12:25 +0000)
committerstronk7 <stronk7>
Tue, 30 Sep 2003 12:25:11 +0000 (12:25 +0000)
course/format/topics.php

index 94f569c7436b6e9c95960fb096b9ec53549056f1..ded8580bcaa65722f8dc44cb659da6957fa31655 100644 (file)
     }
     
 
-    if ($news or $course->showrecent) {
+    if (!empty($news) or $course->showrecent) {
         echo "</td><td width=210>";
 
         /// Print all the news items.