]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
replace PHP sizeof() with either count() or empty()
[nominatim.git] / lib / template / search-html.php
index 37a6ce4a8b8e85916f9a0a3fa375e3a9fb89c013..53c6c88cfa88552134a4ffff5dbb2523cf936641 100644 (file)
@@ -57,7 +57,7 @@
                 echo '</div>';
                 $i = $i+1;
             }
-            if (sizeof($aSearchResults) && $sMoreURL)
+            if (!empty($aSearchResults) && $sMoreURL)
             {
                 echo '<div class="more"><a class="btn btn-primary" href="'.htmlentities($sMoreURL).'">Search for more results</a></div>';
             }