X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/369a0974bde0951ac01bd72a421e9f60b52ad7c7..86ca377b1a1505c7a599746c095bc83156e3997d:/lib/template/details-html.php?ds=sidebyside 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) {