Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/184415

Change subject: Avoid "Fatal error: Class name must be a valid object or a 
string" error
......................................................................

Avoid "Fatal error: Class name must be a valid object or a string" error

Change-Id: Ia21f4d2c45aaaa12a270dd0fda7274008736a899
---
M maintenance/Maintenance.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/15/184415/1

diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php
index 4b07d2f..9b98b20 100644
--- a/maintenance/Maintenance.php
+++ b/maintenance/Maintenance.php
@@ -604,7 +604,7 @@
                global $wgProfiler;
 
                $output = $this->getOption( 'profiler' );
-               if ( $output && is_array( $wgProfiler ) ) {
+               if ( $output && is_array( $wgProfiler ) && isset( 
$wgProfiler['class'] ) ) {
                        $class = $wgProfiler['class'];
                        $profiler = new $class(
                                array( 'sampling' => 1, 'output' => $output ) + 
$wgProfiler

-- 
To view, visit https://gerrit.wikimedia.org/r/184415
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia21f4d2c45aaaa12a270dd0fda7274008736a899
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to