From 2914a8611c2f39d8f8a6393ea28a08efccf6dfa4 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 24 Oct 2004 10:23:36 +0000 Subject: [PATCH] Don't try to output bogus Last-Modified timestamp if there are no recentchanges table entries --- includes/SpecialRecentchanges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1