Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 860)
+++ trunk/CHANGELOG	(revision 861)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.7.1 -------------------------------------
 19-Aug-2008 Matthias Gallas
+#	fixed display issue in news modul
 !	updated show_menu2 to version 4.7
 18-Sep-2008 Thomas Hornik
 +	Added captcha-reload
Index: trunk/wb/modules/news/view.php
===================================================================
--- trunk/wb/modules/news/view.php	(revision 860)
+++ trunk/wb/modules/news/view.php	(revision 861)
@@ -98,7 +98,8 @@
 	}
 	
 	// Get total number of posts
-	$query_total_num = $database->query("SELECT post_id FROM ".TABLE_PREFIX."mod_news_posts WHERE section_id = '$section_id' AND active = '1' AND title != ''$query_extra");
+	$t = time();
+	$query_total_num = $database->query("SELECT post_id FROM ".TABLE_PREFIX."mod_news_posts WHERE section_id = '$section_id' AND active = '1' AND title != '' $query_extra AND (published_when = '0' OR published_when <= $t) AND (published_until = 0 OR published_until >= $t)");
 	$total_num = $query_total_num->numRows();
 
 	// Work-out if we need to add limit code to sql
