From: Sarah Hoffmann Date: Sat, 30 Sep 2017 07:39:47 +0000 (+0200) Subject: return unchanged term if normalizer was not found X-Git-Tag: v3.1.0~73 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/b1e8db7ca7e5b134eca8255bebd130fe85774837?ds=sidebyside return unchanged term if normalizer was not found --- diff --git a/lib/Geocode.php b/lib/Geocode.php index a5b9d485..96ebbb13 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -63,7 +63,7 @@ class Geocode private function normTerm($sTerm) { if ($this->oNormalizer === null) { - return null; + return $sTerm; } return $this->oNormalizer->transliterate($sTerm);