From 6e1ab9c0fc90ceb25fa264f4363a19750bb9ae99 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Fri, 5 Mar 2004 21:24:14 +0000 Subject: [PATCH] Fixed bug causing early execution errors to occasionally be masked --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1