diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2025-01-10 00:55:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2025-01-10 00:55:13 +0000 |
commit | c64987a2b77740fdf9a0903d05b0f354ff6a8d28 (patch) | |
tree | 4f1d17280c439090df76c5726ef0e80f8efeb207 /includes/GlobalFunctions.php | |
parent | 8ce0a476897c46c9821692d1c25fdf2982105803 (diff) | |
parent | 62fbd7ccea8ca3e9cb7ee238c8229053bf4ffd30 (diff) | |
download | mediawikicore-c64987a2b77740fdf9a0903d05b0f354ff6a8d28.tar.gz mediawikicore-c64987a2b77740fdf9a0903d05b0f354ff6a8d28.zip |
Merge "build: Upgrade mediawiki/mediawiki-phan-config from 0.14.0 to 0.15.0"
Diffstat (limited to 'includes/GlobalFunctions.php')
-rw-r--r-- | includes/GlobalFunctions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 3c3f122402fb..4bd1778f395b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1218,7 +1218,7 @@ function wfSetBit( &$dest, $bit, $state = true ) { function wfVarDump( $var ) { global $wgOut; $s = str_replace( "\n", "<br />\n", var_export( $var, true ) . "\n" ); - if ( headers_sent() || !isset( $wgOut ) || !is_object( $wgOut ) ) { + if ( headers_sent() || $wgOut === null || !is_object( $wgOut ) ) { print $s; } else { $wgOut->addHTML( $s ); |