From 438f3214a782ac0914583d2d3d4463944d9d0bbc Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 4 Dec 2016 21:05:32 +0100 Subject: [PATCH] missing defined check --- resources/views/yuuno/elements/pagination.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/yuuno/elements/pagination.twig b/resources/views/yuuno/elements/pagination.twig index e7b0813..670d1d4 100644 --- a/resources/views/yuuno/elements/pagination.twig +++ b/resources/views/yuuno/elements/pagination.twig @@ -1,7 +1,7 @@ {% set paginationSeparator %}{% if '%3F' in paginationUrl|default('')|url_encode %}&{% else %}?{% endif %}{% endset %} {% set paginationPage = get.page|default(1) %} -
+
{% if paginationPages is defined and paginationPages|length > 1 %} {% if paginationPage > 1 %} {% if paginationPages|length > 2 %}