Fixed bug causing early execution errors to occasionally be masked
authorMr. E23 <e23@users.mediawiki.org>
Fri, 5 Mar 2004 21:24:14 +0000 (21:24 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Fri, 5 Mar 2004 21:24:14 +0000 (21:24 +0000)
includes/GlobalFunctions.php

index f813511..5491fba 100644 (file)
@@ -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 ) {