From 25675e937731bbe2f0c1fa5d9fdbc34ab01aa9c0 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 24 Oct 2011 22:25:10 +0000 Subject: [PATCH] use isset to check existance of a variable git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1238 a1433add-5e2c-0410-b055-b7f2511e0802 --- templates/flash_error.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)} {/if} - {if $smarty.session.flash.error} + {if isset($smarty.session.flash.error)} {/if} {/if} -{/strip} \ No newline at end of file +{/strip}