diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-13 13:00:41 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-13 13:00:41 -0800 |
| commit | dcd7a8fbb8924665a07582aa53f07a86ef922287 (patch) | |
| tree | d8c979b9dc72b3de943ec25dc883f25bde1750c6 /modules/gallery/views/menu.html.php | |
| parent | 650845eddaad250374330a14c47cda62bf41f20a (diff) | |
| parent | 36702b1397dcac9ba5a607f62e2a1caeb307ac7a (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/views/menu.html.php')
| -rw-r--r-- | modules/gallery/views/menu.html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/views/menu.html.php b/modules/gallery/views/menu.html.php index cb49bcdf..17a249dd 100644 --- a/modules/gallery/views/menu.html.php +++ b/modules/gallery/views/menu.html.php @@ -1,7 +1,7 @@ <?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_empty()): // Don't show the menu if it has no choices ?> <? if ($menu->is_root): ?> -<ul <?= isset($menu->css_id) ? "id='$menu->css_id'" : "" ?> class="<?= $menu->css_class ?>"> +<ul <?= $menu->css_id ? "id='$menu->css_id'" : "" ?> class="<?= $menu->css_class ?>"> <? foreach ($menu->elements as $element): ?> <?= $element->render() ?> <? endforeach ?> |
