From: Mr. E23 Date: Fri, 5 Mar 2004 21:24:14 +0000 (+0000) Subject: Fixed bug causing early execution errors to occasionally be masked X-Git-Tag: 1.3.0beta1~867 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=6e1ab9c0fc90ceb25fa264f4363a19750bb9ae99;p=lhc%2Fweb%2Fwiklou.git Fixed bug causing early execution errors to occasionally be masked --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index f813511583..5491fbaf3f 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -188,7 +188,7 @@ function wfDebug( $text, $logonly = false ) { global $wgOut, $wgDebugLogFile, $wgDebugComments, $wgProfileOnly; - if ( $wgDebugComments && !$logonly ) { + if ( isset( $wgOut ) && $wgDebugComments && !$logonly ) { $wgOut->debug( $text ); } if ( "" != $wgDebugLogFile && !$wgProfileOnly ) {