From 9975a41b6293d630c6e3e3f48df5a1d4f2409b9a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 18 Jan 2017 11:06:48 +0100 Subject: [PATCH] Fixed exception if footer menu is disabled --- com.woltlab.wcf/templates/ampFooter.tpl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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}