mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 02:47:59 +00:00
remove unnecessary size check
This commit is contained in:
@@ -1124,14 +1124,10 @@ class Geocode
|
||||
if (CONST_Debug) var_Dump($sSQL);
|
||||
|
||||
$aValidTokens = array();
|
||||
if (sizeof($aTokens)) {
|
||||
$aDatabaseWords = chksql(
|
||||
$this->oDB->getAll($sSQL),
|
||||
"Could not get word tokens."
|
||||
);
|
||||
} else {
|
||||
$aDatabaseWords = array();
|
||||
}
|
||||
$aDatabaseWords = chksql(
|
||||
$this->oDB->getAll($sSQL),
|
||||
"Could not get word tokens."
|
||||
);
|
||||
$aPossibleMainWordIDs = array();
|
||||
$aWordFrequencyScores = array();
|
||||
foreach ($aDatabaseWords as $aToken) {
|
||||
|
||||
Reference in New Issue
Block a user