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); if (CONST_Debug) var_Dump($sSQL);
$aValidTokens = array(); $aValidTokens = array();
if (sizeof($aTokens)) { $aDatabaseWords = chksql(
$aDatabaseWords = chksql( $this->oDB->getAll($sSQL),
$this->oDB->getAll($sSQL), "Could not get word tokens."
"Could not get word tokens." );
);
} else {
$aDatabaseWords = array();
}
$aPossibleMainWordIDs = array(); $aPossibleMainWordIDs = array();
$aWordFrequencyScores = array(); $aWordFrequencyScores = array();
foreach ($aDatabaseWords as $aToken) { foreach ($aDatabaseWords as $aToken) {