Don't try to output bogus Last-Modified timestamp if there are no recentchanges table...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 24 Oct 2004 10:23:36 +0000 (10:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 24 Oct 2004 10:23:36 +0000 (10:23 +0000)
includes/SpecialRecentchanges.php

index 75a4bfc..9914924 100644 (file)
@@ -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;
        }