]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
remove unused code
[nominatim.git] / lib / Geocode.php
index 3726f3379600675a00196020f7d18d7e37741c3f..589220358f6514df2242f6a9296330973fca846f 100644 (file)
@@ -902,7 +902,7 @@ class Geocode
 
     public function lookup()
     {
 
     public function lookup()
     {
-        if (!$this->sQuery && !$this->aStructuredQuery) return false;
+        if (!$this->sQuery && !$this->aStructuredQuery) return array();
 
         $sLanguagePrefArraySQL = "ARRAY[".join(',', array_map("getDBQuoted", $this->aLangPrefOrder))."]";
         $sCountryCodesSQL = false;
 
         $sLanguagePrefArraySQL = "ARRAY[".join(',', array_map("getDBQuoted", $this->aLangPrefOrder))."]";
         $sCountryCodesSQL = false;