diff --git a/templates/flash_error.tpl b/templates/flash_error.tpl
index babec2e3..61fdbd75 100644
--- a/templates/flash_error.tpl
+++ b/templates/flash_error.tpl
@@ -1,15 +1,15 @@
{strip}
- {if $smarty.session.flash}
- {if $smarty.session.flash.info}
+ {if isset($smarty.session.flash)}
+ {if isset($smarty.session.flash.info)}