Fix more PHP Warnings

This commit is contained in:
seiichiro 2022-01-11 18:08:26 +01:00
parent 63602e44c9
commit 097e97dd1b
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,7 @@
</div>
</div>
<div class="content">
{% if(!empty($dirs)): %}
{% foreach($dirs as $d): %}
<div class="multi-image">
<a href="index.php?d={{ $dir }}/{{ $d }}&s={{ $slice }}&p=1">
@ -24,6 +25,8 @@
<p class="dirname">{{ $d }}</p>
</div>
{% endforeach %}
{% endif %}
{% if(!empty($images)): %}
{% foreach($images as $image): %}
<div class="multi-image">
<a href="index.php?d={{ $dir }}&s=1&gs={{ $slice }}&p={{ $image['i'] }}{{ $filter }}">
@ -31,6 +34,7 @@
</a>
</div>
{% endforeach %}
{% endif %}
</div>
<div class="page-footer">
<a id="link-first" href="/index.php?d={{ $dir }}&p=1&s={{ $slice }}{{ $filter }}">1</a>

View file

@ -20,9 +20,11 @@
</a>
</div>
<div class="page-footer">
{% if(!empty($tags)): %}
{% foreach($tags as $tag): %}
<a href="/index.php?d={{ $dir }}&s={{ $gallery_slice }}&f={{{ $tag }}}"><span class="tag">{{ $tag }}</span></a>
{% endforeach %}
{% endif %}
</div>
</div>
{% endblock %}