summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2021-01-20 07:45:47 -0500
committerspiderr <spiderr@bitweaver.org>2021-01-20 07:45:47 -0500
commitd9d215a4a116dce855582c319303f87462b972b3 (patch)
tree8d5182c2716654f5b7e39aa92f03f4e3acc2dde3
parentb39fd928db6077127cad37fa2d2ee51d39ef201e (diff)
downloadwiki-d9d215a4a116dce855582c319303f87462b972b3.tar.gz
wiki-d9d215a4a116dce855582c319303f87462b972b3.tar.bz2
wiki-d9d215a4a116dce855582c319303f87462b972b3.zip
PHP7 implements Countable check
-rw-r--r--templates/page_icons.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/page_icons.tpl b/templates/page_icons.tpl
index cd49496..67a3ae1 100644
--- a/templates/page_icons.tpl
+++ b/templates/page_icons.tpl
@@ -85,7 +85,7 @@
</div>
{/if}
- {if count($showstructs) gt 0}
+ {if $showstructs && (count($showstructs) gt 0)}
<select id="sel-structures" name="page" onchange="javascript:BitBase.go(this)">
<option value="">{tr}Wiki Books{/tr} &hellip;</option>
{section name=struct loop=$showstructs}