X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/97ade7dd7e32119a67e0be0e2ba8ddede9050f26..e841422b1f9fe85bcce03d5406a42a855d432d10:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 3726f337..58922035 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -902,7 +902,7 @@ class Geocode 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;