X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1cdc30c5e826b0378c28cb60e17a0f409f936b43..d933ead2b503bd0377b1c8f7c0984f29b23ed908:/lib-php/Geocode.php diff --git a/lib-php/Geocode.php b/lib-php/Geocode.php index fcbc2f28..14a3315e 100644 --- a/lib-php/Geocode.php +++ b/lib-php/Geocode.php @@ -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();