From: Marcel Werk Date: Wed, 18 Jan 2017 10:06:48 +0000 (+0100) Subject: Fixed exception if footer menu is disabled X-Git-Tag: 3.0.1~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9975a41b6293d630c6e3e3f48df5a1d4f2409b9a;p=GitHub%2FWoltLab%2FWCF.git Fixed exception if footer menu is disabled --- diff --git a/com.woltlab.wcf/templates/ampFooter.tpl b/com.woltlab.wcf/templates/ampFooter.tpl index cc3ab0e33d..5b68e6a8c0 100644 --- a/com.woltlab.wcf/templates/ampFooter.tpl +++ b/com.woltlab.wcf/templates/ampFooter.tpl @@ -18,12 +18,13 @@ {/if} {/foreach} -
    - {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode} -
  1. {lang}{$menuItemNode->title}{/lang}
  2. - {/foreach} -
- + {if $__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')} +
    + {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.FooterMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode} +
  1. {lang}{$menuItemNode->title}{/lang}
  2. + {/foreach} +
+ {/if}

{lang}wcf.menu.page.location{/lang}