Project

General

Profile

« Previous | Next » 

Revision 861

Added by Matthias over 15 years ago

fixed display issue in news modul

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.7.1 -------------------------------------
14 14
19-Aug-2008 Matthias Gallas
15
#	fixed display issue in news modul
15 16
!	updated show_menu2 to version 4.7
16 17
18-Sep-2008 Thomas Hornik
17 18
+	Added captcha-reload
trunk/wb/modules/news/view.php
98 98
	}
99 99
	
100 100
	// Get total number of posts
101
	$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");
101
	$t = time();
102
	$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)");
102 103
	$total_num = $query_total_num->numRows();
103 104

  
104 105
	// Work-out if we need to add limit code to sql

Also available in: Unified diff