aboutsummaryrefslogtreecommitdiffstats
path: root/includes/GlobalFunctions.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2025-01-10 00:55:13 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2025-01-10 00:55:13 +0000
commitc64987a2b77740fdf9a0903d05b0f354ff6a8d28 (patch)
tree4f1d17280c439090df76c5726ef0e80f8efeb207 /includes/GlobalFunctions.php
parent8ce0a476897c46c9821692d1c25fdf2982105803 (diff)
parent62fbd7ccea8ca3e9cb7ee238c8229053bf4ffd30 (diff)
downloadmediawikicore-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.php2
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 );