]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
replace deprecated ST_Line_Locate_Point function
[nominatim.git] / lib / Geocode.php
index a3066b7c858087cfbe837ea21fbda547afc02457..4ed90dc2bb89c2696168c617ff5a604e80bd75c7 100644 (file)
@@ -252,7 +252,7 @@ class Geocode
                     $aCountries[] = strtolower($sCountryCode);
                 }
             }
-            if (isset($aCountryCodes))
+            if (isset($aCountries))
                 $this->aCountryCodes = $aCountries;
         }
 
@@ -1481,6 +1481,7 @@ class Geocode
 
             if ($aLookup['place_id']) {
                 $aSearchResults = $this->getDetails(array($aLookup['place_id'] => -1));
+                $aResultPlaceIDs[$aLookup['place_id']] = -1;
             } else {
                 $aSearchResults = array();
             }