PHP Notice: Undefined variable: matches in /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/WebRequest.php on line 109
Explicitally define $matches at top of function, allowing it to always be defined for all paths
}
static public function getPathInfo( $want = 'all' ) {
+ $matches = array();
if ( !empty( $_SERVER['REQUEST_URI'] ) ) {
// Slurp out the path portion to examine...
$url = $_SERVER['REQUEST_URI'];
if( $path == $wgScript && $want !== 'all' ) {
// Script inside a rewrite path?
// Abort to keep from breaking...
- return array();
+ return $matches;
}
// Raw PATH_INFO style
$matches = self::extractTitle( $path, "$wgScript/$1" );