From 8f2e0899086bc6d87a696eaa9d744af806d50292 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Fri, 13 Sep 2013 17:45:23 +0100 Subject: [PATCH] Fix missed local variable aAddressRankList in conversion --- lib/Geocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "; -- 2.39.5