From: Brian Quinion Date: Fri, 13 Sep 2013 16:45:23 +0000 (+0100) Subject: Fix missed local variable aAddressRankList in conversion X-Git-Tag: v2.2.0~26 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8f2e0899086bc6d87a696eaa9d744af806d50292 Fix missed local variable aAddressRankList in conversion --- 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 ";