fixed notice
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 23 Mar 2004 10:25:16 +0000 (10:25 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 23 Mar 2004 10:25:16 +0000 (10:25 +0000)
includes/GlobalFunctions.php

index 5692b46..fc5b575 100644 (file)
@@ -807,7 +807,7 @@ function wfVarDump( $var )
 {
        global $wgOut;
        $s = str_replace("\n","<br>\n", var_export( $var, true ) . "\n");
-       if ( headers_sent() ) {
+       if ( headers_sent() || !@is_object( $wgOut ) ) {
                print $s;
        } else {
                $wgOut->addHTML( $s );