]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/AddressDetails.php
Merge pull request #2559 from lonvia/disable-jit-in-queries
[nominatim.git] / lib-php / AddressDetails.php
index fc7fbec7a66f748f4610d504df08615500531a98..91e3d89fcfac21acf1120aea9aa58d2cf3d1d4a7 100644 (file)
@@ -79,12 +79,11 @@ class AddressDetails
                 $sName = $aLine['housenumber'];
             }
 
-            if (isset($sName)) {
-                if (!isset($aAddress[$sTypeLabel])
-                    || $aLine['class'] == 'place'
-                ) {
-                    $aAddress[$sTypeLabel] = $sName;
-                }
+            if (isset($sName)
+                && (!isset($aAddress[$sTypeLabel])
+                    || $aLine['class'] == 'place')
+            ) {
+                $aAddress[$sTypeLabel] = $sName;
             }
         }