X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..97a10ec2186faa9aa53a215662714c760e980a00:/lib-php/template/search-geocodejson.php?ds=inline diff --git a/lib-php/template/search-geocodejson.php b/lib-php/template/search-geocodejson.php index 3e3a31c4..336731a2 100644 --- a/lib-php/template/search-geocodejson.php +++ b/lib-php/template/search-geocodejson.php @@ -9,7 +9,9 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { ) ); - if (isset($aPointDetails['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id']; + if (isset($aPointDetails['place_id'])) { + $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id']; + } $sOSMType = formatOSMType($aPointDetails['osm_type']); if ($sOSMType) { $aPlace['properties']['geocoding']['osm_type'] = $sOSMType;