diff --git a/src/templates/modern/nli/index.tpl b/src/templates/modern/nli/index.tpl
index 13735e3..590e6c6 100644
--- a/src/templates/modern/nli/index.tpl
+++ b/src/templates/modern/nli/index.tpl
@@ -49,19 +49,19 @@
- {lng p="home"}
- {foreach from=$pluginUserPages item=item}{if $item.top&&$item.after=='login'}
+ {foreach from=$pluginUserPages item=item}{if isset($item.top)&&$item.after=='login'}
- {$item.text}
{/if}{/foreach}
{if $_regEnabled||(!$templatePrefs.hideSignup)}- {lng p="signup"}
{/if}
- {foreach from=$pluginUserPages item=item}{if $item.top&&$item.after=='signup'}
+ {foreach from=$pluginUserPages item=item}{if isset($item.top)&&$item.after=='signup'}
- {$item.text}
{/if}{/foreach}
- {lng p="faq"}
- {foreach from=$pluginUserPages item=item}{if $item.top&&$item.after=='faq'}
+ {foreach from=$pluginUserPages item=item}{if isset($item.top)&&$item.after=='faq'}
- {$item.text}
{/if}{/foreach}
- {lng p="tos"}
- {foreach from=$pluginUserPages item=item}{if $item.top&&(!$item.after||$item.after=='tos')}
+ {foreach from=$pluginUserPages item=item}{if isset($item.top)&&(!$item.after||$item.after=='tos')}
- {$item.text}
{/if}{/foreach}
- {lng p="contact"}