diff --git a/shaarli-pro/linklist.paging.html b/shaarli-pro/linklist.paging.html index ceaf4ed..1369be2 100644 --- a/shaarli-pro/linklist.paging.html +++ b/shaarli-pro/linklist.paging.html @@ -1,4 +1,7 @@ {if="$page_max > 1"} +{if="isset($result_count) && $result_count > 0"} +{$total=$result_count} +{else} {if="$is_logged_in"} {$total="$linkcount"} {else} @@ -8,6 +11,7 @@ {$total=$linkcount - $privateLinkcount} {/if} {/if} +{/if} {$from=($page_current - 1) * $links_per_page + 1} {$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)}