From: Brion Vibber Date: Sun, 24 Oct 2004 10:23:36 +0000 (+0000) Subject: Don't try to output bogus Last-Modified timestamp if there are no recentchanges table... X-Git-Tag: 1.5.0alpha1~1464 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=2914a8611c2f39d8f8a6393ea28a08efccf6dfa4;p=lhc%2Fweb%2Fwiklou.git Don't try to output bogus Last-Modified timestamp if there are no recentchanges table entries --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 75a4bfc060..9914924f95 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -53,7 +53,7 @@ function wfSpecialRecentchanges( $par ) { $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, $fname ); # 10 seconds server-side caching max $wgOut->setSquidMaxage( 10 ); - if( $wgOut->checkLastModified( $lastmod ) ){ + if( $lastmod && $wgOut->checkLastModified( $lastmod ) ){ # Client cache fresh and headers sent, nothing more to do. return; }