aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/pagination.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/pagination.html')
-rw-r--r--templates/web/base/pagination.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/pagination.html b/templates/web/base/pagination.html
index 3b7bdc0b2..a52632a25 100644
--- a/templates/web/base/pagination.html
+++ b/templates/web/base/pagination.html
@@ -1,5 +1,5 @@
-[% IF pager.total_entries > 1 %]
- <p class="pagination" data-page="[% pager.current_page %]">
+[% IF pager AND pager.total_entries > 1 %]
+ <p class="pagination" data-page="[% pager.current_page | html %]">
[% IF pager.previous_page %]
<a class="prev" href="[% c.uri_with({ $param => pager.previous_page, ajax => undefined }) %][% '#' _ hash IF hash %]">[% loc('Previous') %]</a>
[% END %]