X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/44262c1d4c2c719394eaca6b1717e90d9c13b195..8f2e0899086bc6d87a696eaa9d744af806d50292:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 3e5c7be1..4d0c4865 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -250,7 +250,7 @@ $sSQL .= "from placex where place_id in ($sPlaceIDs) "; $sSQL .= "and (placex.rank_address between $this->iMinAddressRank and $this->iMaxAddressRank "; if (14 >= $this->iMinAddressRank && 14 <= $this->iMaxAddressRank) $sSQL .= " OR (extratags->'place') = 'city'"; - if ($aAddressRankList) $sSQL .= " OR placex.rank_address in (".join(',',$aAddressRankList).")"; + if ($this->aAddressRankList) $sSQL .= " OR placex.rank_address in (".join(',',$this->aAddressRankList).")"; $sSQL .= ") "; if ($this->sAllowedTypesSQLList) $sSQL .= "and placex.class in $this->sAllowedTypesSQLList "; $sSQL .= "and linked_place_id is null ";