$hasInterwikiResults = false;
$totalhits = null;
if ( $interwiki && $resultPageSet === null && $matches->hasInterwikiResults() ) {
- foreach( $matches->getInterwikiResults() as $matches ) {
+ foreach ( $matches->getInterwikiResults() as $matches ) {
$matches = $matches->getInterwikiResults();
$hasInterwikiResults = true;
);
$alternatives = SearchEngine::getSearchTypes();
- if ( count( $alternatives ) > 1 ) {
+ if ( count( $alternatives ) > 0 ) {
if ( $alternatives[0] === null ) {
$alternatives[0] = self::BACKEND_NULL_PARAM;
}