Change-Id: I56f1f36a3a54c6c23579f011d65dc75f30cb6dcf
);
foreach ( $clusterHosts as $clusterHost ) {
);
foreach ( $clusterHosts as $clusterHost ) {
- $infoHost = array_intersect_key( wfParseUrl( $clusterHost ), $relevantKeys );
+ $parseUrl = wfParseUrl( $clusterHost );
+ if ( !$parseUrl ) {
+ continue;
+ }
+ $infoHost = array_intersect_key( $parseUrl, $relevantKeys );
if ( $infoCandidate === $infoHost ) {
return true;
}
if ( $infoCandidate === $infoHost ) {
return true;
}