diff --git a/code/web/public_php/ams/templates/layout.tpl b/code/web/public_php/ams/templates/layout.tpl index 6515416a2..af5ea099d 100644 --- a/code/web/public_php/ams/templates/layout.tpl +++ b/code/web/public_php/ams/templates/layout.tpl @@ -137,7 +137,7 @@ {if isset($hook_info)}
{foreach from=$hook_info key=arrkey item=element} - {if $arrkey eq $smarty.get.name} + {if isset($hook_info[$arrkey]['TemplatePath'])} {include file=$element['TemplatePath']} {/if} {/foreach}