missing defined check

This commit is contained in:
flash 2016-12-04 21:05:32 +01:00
parent 91c6bb6aa9
commit 438f3214a7

View file

@ -1,7 +1,7 @@
{% set paginationSeparator %}{% if '%3F' in paginationUrl|default('')|url_encode %}&{% else %}?{% endif %}{% endset %} {% set paginationSeparator %}{% if '%3F' in paginationUrl|default('')|url_encode %}&{% else %}?{% endif %}{% endset %}
{% set paginationPage = get.page|default(1) %} {% set paginationPage = get.page|default(1) %}
<div class="pagination{% if paginationClass %} {{ paginationClass }}{% endif %}"> <div class="pagination{% if paginationClass is defined %} {{ paginationClass }}{% endif %}">
{% if paginationPages is defined and paginationPages|length > 1 %} {% if paginationPages is defined and paginationPages|length > 1 %}
{% if paginationPage > 1 %} {% if paginationPage > 1 %}
{% if paginationPages|length > 2 %} {% if paginationPages|length > 2 %}