]> git.openstreetmap.org Git - nominatim.git/commitdiff
Fix missed local variable aAddressRankList in conversion
authorBrian Quinion <brian.quinion@mapquest.com>
Fri, 13 Sep 2013 16:45:23 +0000 (17:45 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Fri, 13 Sep 2013 16:45:23 +0000 (17:45 +0100)
lib/Geocode.php

index 3e5c7be1f2a72c2ba3988984e49cadb4fdad9b44..4d0c48656cf1c10ddaba056a7618524b349e4bf1 100644 (file)
                        $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 ";