Revision 663
Added by thorn almost 17 years ago
frontend.functions.php | ||
---|---|---|
209 | 209 |
while($section = $query_sections->fetchRow()) { |
210 | 210 |
// skip this section if it is out of publication-date |
211 | 211 |
$now = time(); |
212 |
if( !( $now<$section['publ_end'] && ($now>$section['publ_start'] || $section['publ_start']==0) || |
|
213 |
$now>$section['publ_start'] && $section['publ_end']==0) ) { |
|
212 |
if( !(($now<=$section['publ_end'] || $section['publ_end']==0) && ($now>=$section['publ_start'] || $section['publ_start']==0)) ) { |
|
214 | 213 |
continue; |
215 | 214 |
} |
216 | 215 |
$section_id = $section['section_id']; |
Also available in: Unified diff
out-of-date default page isn't shown anymore, instead shows next public page