From 2deac34648049a6cb9dc897abe15cbd423358f52 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 2 Oct 2017 22:31:52 +0200 Subject: [PATCH] remove unnecessary size check --- lib/Geocode.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index 6961b630..80a959c2 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -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) { -- 2.39.5