X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQuerySearch.php;h=51f799a25157a27582ebb9989824283711fe7867;hb=13142cd2f4684ffa6c51e5b9d14692988a408d0b;hp=c6999df8e3147bdd3e84ac438a08e162da0bfff4;hpb=564c585eb9f738939a1237eaa6b63292a6c49fe3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index c6999df8e3..51f799a251 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -206,7 +206,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { $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; @@ -332,7 +332,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { ); $alternatives = SearchEngine::getSearchTypes(); - if ( count( $alternatives ) > 1 ) { + if ( count( $alternatives ) > 0 ) { if ( $alternatives[0] === null ) { $alternatives[0] = self::BACKEND_NULL_PARAM; }