Fixed exception if footer menu is disabled
authorMarcel Werk <burntime@woltlab.com>
Wed, 18 Jan 2017 10:06:48 +0000 (11:06 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 18 Jan 2017 10:06:58 +0000 (11:06 +0100)
com.woltlab.wcf/templates/ampFooter.tpl

index cc3ab0e33de59203d45defc624558e6af4fdc069..5b68e6a8c04f5908a8c612400924b599a5d80d5a 100644 (file)
                                        {/if}
                                {/foreach}
                        </ol>
-                       <ol>
-                               {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode}
-                                       <li><a href="{$menuItemNode->getURL()}">{lang}{$menuItemNode->title}{/lang}</a></li>
-                               {/foreach}
-                       </ol>
-                       
+                       {if $__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')}
+                               <ol>
+                                       {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode}
+                                               <li><a href="{$menuItemNode->getURL()}">{lang}{$menuItemNode->title}{/lang}</a></li>
+                                       {/foreach}
+                               </ol>
+                       {/if}
                        <h3>{lang}wcf.menu.page.location{/lang}</h3>
                        <ol class="breadcrumbs">
                                {assign var=__breadcrumbsDepth value=0}