remove unnecessary size check

This commit is contained in:
Sarah Hoffmann
2017-10-02 22:31:52 +02:00
parent e8c52c6780
commit 2deac34648

View File

@@ -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) {