Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -188,7 +188,7 @@ |
189 | 189 | { |
190 | 190 | global $wgOut, $wgDebugLogFile, $wgDebugComments, $wgProfileOnly; |
191 | 191 | |
192 | | - if ( $wgDebugComments && !$logonly ) { |
| 192 | + if ( isset( $wgOut ) && $wgDebugComments && !$logonly ) { |
193 | 193 | $wgOut->debug( $text ); |
194 | 194 | } |
195 | 195 | if ( "" != $wgDebugLogFile && !$wgProfileOnly ) { |