diff --git a/public_html/templates/default/LSdefault.tpl b/public_html/templates/default/LSdefault.tpl
index ff0d40ed..42466c32 100644
--- a/public_html/templates/default/LSdefault.tpl
+++ b/public_html/templates/default/LSdefault.tpl
@@ -1,6 +1,6 @@
{if is_array($LSinfos) && !empty($LSinfos)}
+
{if isset($LSinfos) && is_array($LSinfos) && !empty($LSinfos)}
{foreach $LSinfos as $info}
- {$info|escape:"htmlall"}
@@ -8,9 +8,9 @@
{/if}
-
{$LSerrors}
+
{if isset($LSerrors) && $LSerrors}{$LSerrors}{/if}
-
{if $LSdebug != ''}{$LSdebug}{/if}
+
{if isset($LSdebug) && $LSdebug}{$LSdebug}{/if}
diff --git a/public_html/templates/default/LSform.tpl b/public_html/templates/default/LSform.tpl
index 1bb3d835..ba47e860 100644
--- a/public_html/templates/default/LSform.tpl
+++ b/public_html/templates/default/LSform.tpl
@@ -1,6 +1,6 @@