Permalink
Browse files

If selected news count is zero, dont print forum headers.

  • Loading branch information...
1 parent acb23f9 commit 63fa3f8014d834a59dd1a1a98223ac9e734b6d58 paca70 committed Nov 7, 2004
Showing with 6 additions and 3 deletions.
  1. +6 −3 index.php
View
@@ -170,9 +170,12 @@
} else {
$headertext = $newsforum->name;
}
- print_heading_block($headertext);
- print_spacer(8,1);
- forum_print_latest_discussions($newsforum->id, $site->newsitems);
+
+ if ($site->newsitems) { //print forums only when needed
+ print_heading_block($headertext);
+ print_spacer(8,1);
+ forum_print_latest_discussions($newsforum->id, $site->newsitems);
+ }
break;
case FRONTPAGECOURSELIST:

0 comments on commit 63fa3f8

Please sign in to comment.