From f4a210165c733bb8c9af7f54ab8f7dafa09b916b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 23 Mar 2004 10:25:16 +0000 Subject: [PATCH] fixed notice --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5692b46a84..fc5b575437 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -807,7 +807,7 @@ function wfVarDump( $var ) { global $wgOut; $s = str_replace("\n","
\n", var_export( $var, true ) . "\n"); - if ( headers_sent() ) { + if ( headers_sent() || !@is_object( $wgOut ) ) { print $s; } else { $wgOut->addHTML( $s ); -- 2.20.1