Workaround for occasional fatal
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 23 Aug 2005 16:54:45 +0000 (16:54 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 23 Aug 2005 16:54:45 +0000 (16:54 +0000)
includes/Database.php

index 719e63c..6f21171 100644 (file)
@@ -1735,7 +1735,9 @@ border=\"0\" ALT=\"Google\"></A>
        }
 
        # No database access
-       $wgMessageCache->disable();
+       if ( is_object( $wgMessageCache ) ) {
+               $wgMessageCache->disable();
+       }
        
        $msg = wfGetSiteNotice();
        if($msg == '') {