X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fb012504b2a4fbeb82461f3fa59b383bf43f8521..da7218350b42f6470d575b88b9e6bb72b6e65ee5:/website/hierarchy.php?ds=sidebyside
diff --git a/website/hierarchy.php b/website/hierarchy.php
index e2db3ede..66699f55 100644
--- a/website/hierarchy.php
+++ b/website/hierarchy.php
@@ -103,10 +103,8 @@ if (!empty($aParentOfLines)) {
echo '
Parent Of:
';
$aGroupedAddressLines = array();
foreach ($aParentOfLines as $aAddressLine) {
- $aAddressLine['label'] = Nominatim\ClassTypes\getProperty($aAddressLine, 'label');
- if (!$aAddressLine['label']) {
- $aAddressLine['label'] = ucwords($aAddressLine['type']);
- }
+ $aAddressLine['label'] = Nominatim\ClassTypes\getLabel($aAddressLine)
+ ?? ucwords($aAddressLine['type']);
if (!isset($aGroupedAddressLines[$aAddressLine['label']])) $aGroupedAddressLines[$aAddressLine['label']] = array();
$aGroupedAddressLines[$aAddressLine['label']][] = $aAddressLine;