X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a1f3bfb35afbe70f97b130874bd1b43ee844a6b2..fb7d65b8c377fd5c9a74fef1ef800c9bc8e2abc3:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 93498c33..80561d27 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -226,8 +226,11 @@ function loadParamArray($aParams) { if (isset($aParams['addressdetails'])) $this->bIncludeAddressDetails = (bool)$aParams['addressdetails']; - if (isset($aParams['extratags'])) $this->bIncludeExtraTags = (bool)$aParams['extratags']; - if (isset($aParams['namedetails'])) $this->bIncludeNameDetails = (bool)$aParams['namedetails']; + if ((float) CONST_Postgresql_Version > 9.2) + { + if (isset($aParams['extratags'])) $this->bIncludeExtraTags = (bool)$aParams['extratags']; + if (isset($aParams['namedetails'])) $this->bIncludeNameDetails = (bool)$aParams['namedetails']; + } if (isset($aParams['bounded'])) $this->bBoundedSearch = (bool)$aParams['bounded']; if (isset($aParams['dedupe'])) $this->bDeDupe = (bool)$aParams['dedupe']; @@ -1786,7 +1789,7 @@ } else { - $aResult['sExtraTags'] = array(); + $aResult['sExtraTags'] = (object) array(); } } @@ -1798,7 +1801,7 @@ } else { - $aResult['sNameDetails'] = array(); + $aResult['sNameDetails'] = (object) array(); } }