X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d8bc544a455332cc3eb7fc43c03c12eaf771b7de..acc0a00b08e482fa21690b52881707ce0498ce2c:/website/search.php diff --git a/website/search.php b/website/search.php index 6319a835..a6e94f5e 100755 --- a/website/search.php +++ b/website/search.php @@ -432,7 +432,7 @@ { $aValidTokens[$aToken['word_token']] = array($aToken); } - if ($aToken['word_token'][0]==' ' && !$aToken['class'] && !$aToken['country_code']) $aPossibleMainWordIDs[$aToken['word_id']] = 1; + if (!$aToken['class'] && !$aToken['country_code']) $aPossibleMainWordIDs[$aToken['word_id']] = 1; $aWordFrequencyScores[$aToken['word_id']] = $aToken['search_name_count'] + 1; } if (CONST_Debug) var_Dump($aPhrases, $aValidTokens);