From: Tim Starling Date: Tue, 23 Aug 2005 16:54:45 +0000 (+0000) Subject: Workaround for occasional fatal X-Git-Tag: 1.6.0~1831 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=0336da0f66cc7f2750a26797c49ffd3bccabfc76;p=lhc%2Fweb%2Fwiklou.git Workaround for occasional fatal --- diff --git a/includes/Database.php b/includes/Database.php index 719e63c445..6f21171870 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1735,7 +1735,9 @@ border=\"0\" ALT=\"Google\"> } # No database access - $wgMessageCache->disable(); + if ( is_object( $wgMessageCache ) ) { + $wgMessageCache->disable(); + } $msg = wfGetSiteNotice(); if($msg == '') {