diff --git a/code/web/public_php/ams/templates/layout.tpl b/code/web/public_php/ams/templates/layout.tpl index 7a436859e..e6cfba3e0 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 $smarty.get.page eq 'layout_plugin'} + {if isset($smarty.get.page) and $smarty.get.page eq 'layout_plugin'} {include file=$element['TemplatePath']} {/if} {/foreach}