mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 21:54:10 +03:00
Merge pull request #2332 from lonvia/fix-keyword-details
Always use object type for details keywords
This commit is contained in:
commit
54b06d7abc
@ -81,10 +81,14 @@ if ($bIncludeKeywords) {
|
||||
|
||||
if ($aPlaceSearchNameKeywords) {
|
||||
$aPlaceDetails['keywords']['name'] = array_map($funcMapKeyword, $aPlaceSearchNameKeywords);
|
||||
} else {
|
||||
$aPlaceDetails['keywords']['name'] = array();
|
||||
}
|
||||
|
||||
if ($aPlaceSearchAddressKeywords) {
|
||||
$aPlaceDetails['keywords']['address'] = array_map($funcMapKeyword, $aPlaceSearchAddressKeywords);
|
||||
} else {
|
||||
$aPlaceDetails['keywords']['address'] = array();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user