From: Tim Starling Date: Tue, 23 Mar 2004 10:25:16 +0000 (+0000) Subject: fixed notice X-Git-Tag: 1.3.0beta1~731 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22%20.%20generer_url_entite%28%24id_rubrique%2C?a=commitdiff_plain;h=f4a210165c733bb8c9af7f54ab8f7dafa09b916b;p=lhc%2Fweb%2Fwiklou.git fixed notice --- 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 );