X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/df463f4ea6fb4767945b95e9ecba603146677474..49dc62201c1960f0d4279a440c1c29919b3d21b8:/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.

'; } }