]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-html.php
replace PHP sizeof() with either count() or empty()
[nominatim.git] / lib / template / details-html.php
index dedf52f3503e0a37227ad3aba0ef28ccfefd025e..ef7d9248dae658438a0e9ad2fed689f02b787af1 100644 (file)
         }
     }
     
-    if (sizeof($aParentOfLines))
+    if (!empty($aParentOfLines))
     {
         headline('Parent Of');
 
                 _one_row($aAddressLine);
             }
         }
-        if (sizeof($aParentOfLines) >= 500) {
+        if (count($aParentOfLines) >= 500) {
             echo '<p>There are more child objects which are not shown.</p>';
         }
     }