return unchanged term if normalizer was not found

This commit is contained in:
Sarah Hoffmann
2017-09-30 09:39:47 +02:00
parent 81a7ea36db
commit b1e8db7ca7

View File

@@ -63,7 +63,7 @@ class Geocode
private function normTerm($sTerm)
{
if ($this->oNormalizer === null) {
return null;
return $sTerm;
}
return $this->oNormalizer->transliterate($sTerm);