X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/032f24bfefcd6c8b5a2211a361430f5523150ab1..fed2c307a7832ab8ffd3df04bb279df808be08d2:/lib/template/search-html.php diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 14ebacc8..2b8c1495 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -17,12 +17,11 @@
@@ -54,11 +53,11 @@ echo ' ('.ucwords(str_replace('_',' ',$aResult['class'])).')'; else echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')'; - echo ' details'; + echo detailsPermaLink($aResult, 'details', 'class="btn btn-default btn-xs details"'); echo ''; $i = $i+1; } - if (sizeof($aSearchResults) && $sMoreURL) + if (!empty($aSearchResults) && $sMoreURL) { echo ''; }