summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/menu.html.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/views/menu.html.php b/modules/gallery/views/menu.html.php
index ba16ef36..b4b38c93 100644
--- a/modules/gallery/views/menu.html.php
+++ b/modules/gallery/views/menu.html.php
@@ -1,4 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+<? if ($menu->elements): // Don't show the menu if it has no choices ?>
<? if ($menu->is_root): ?>
<ul class="<?= $menu->css_class ?>">
@@ -21,3 +22,4 @@
</li>
<? endif ?>
+<? endif ?>