X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/369a0974bde0951ac01bd72a421e9f60b52ad7c7..64797689321e9c098584be3671f29fbc856aa845:/lib/template/details-html.php diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 51374918..1da69301 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -189,8 +189,12 @@ $aGroupedAddressLines = array(); foreach($aParentOfLines as $aAddressLine) { - if (!isset($aGroupedAddressLines[$aAddressLine['type']])) $aGroupedAddressLines[$aAddressLine['type']] = array(); - $aGroupedAddressLines[$aAddressLine['type']][] = $aAddressLine; + if ($aAddressLine['type'] == 'yes') $sType = $aAddressLine['class']; + else $sType = $aAddressLine['type']; + + if (!isset($aGroupedAddressLines[$sType])) + $aGroupedAddressLines[$sType] = array(); + $aGroupedAddressLines[$sType][] = $aAddressLine; } foreach($aGroupedAddressLines as $sGroupHeading => $aParentOfLines) {