X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/09f16616388490578ddebdb1d8be5ae545cd1d64..84ea0753d8d7861ff6a47a6eb29f072a1d342879:/lib/template/search-html.php?ds=inline diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 37a6ce4a..2b8c1495 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -53,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 '
'; }