]> git.openstreetmap.org Git - nominatim.git/commitdiff
typelabel value is already lowercased
authormarc tobias <mtmail@gmx.net>
Wed, 12 May 2021 17:16:51 +0000 (19:16 +0200)
committermarc tobias <mtmail@gmx.net>
Wed, 12 May 2021 17:16:51 +0000 (19:16 +0200)
lib-php/AddressDetails.php

index 3d17ede51cb4d3c605f3d166dca58af542c7a15f..bf8defc230a9c66b0a1f52ec2049e7522a7b7491 100644 (file)
@@ -80,7 +80,6 @@ class AddressDetails
             }
 
             if (isset($sName)) {
             }
 
             if (isset($sName)) {
-                $sTypeLabel = strtolower(str_replace(' ', '_', $sTypeLabel));
                 if (!isset($aAddress[$sTypeLabel])
                     || $aLine['class'] == 'place'
                 ) {
                 if (!isset($aAddress[$sTypeLabel])
                     || $aLine['class'] == 'place'
                 ) {