X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d79a2bb17eef64945f776deae2e43068ecc05b65..27bc8d4f7bb907699dbb974e8159f75bead831c9:/lib/template/details-html.php diff --git a/lib/template/details-html.php b/lib/template/details-html.php index dedf52f3..ef7d9248 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -199,7 +199,7 @@ } } - if (sizeof($aParentOfLines)) + if (!empty($aParentOfLines)) { headline('Parent Of'); @@ -223,7 +223,7 @@ _one_row($aAddressLine); } } - if (sizeof($aParentOfLines) >= 500) { + if (count($aParentOfLines) >= 500) { echo '
There are more child objects which are not shown.
'; } }