]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/Geocode.php
remove unnecessayly nested ifs
[nominatim.git] / lib-php / Geocode.php
index fcbc2f28d9fefadb7c4e17784c0e446e214804ac..14a3315e87931c3e11d304e6f109d29e546c8840 100644 (file)
@@ -817,10 +817,8 @@ class Geocode
 
         // No results? Done
         if (empty($aResults)) {
-            if ($this->bFallback) {
-                if ($this->fallbackStructuredQuery()) {
-                    return $this->lookup();
-                }
+            if ($this->bFallback && $this->fallbackStructuredQuery()) {
+                return $this->lookup();
             }
 
             return array();