From 89f66053a9585418f0f080c70e059b45c0eda696 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 24 Oct 2011 22:24:49 +0000 Subject: [PATCH] fix undefined var check before login - sessid is not set etc git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1237 a1433add-5e2c-0410-b055-b7f2511e0802 --- templates/footer.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/footer.tpl b/templates/footer.tpl index 926a89ae..eec3dcda 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -3,10 +3,12 @@ Postfix Admin {$version}    |    {$PALANG.check_update} - {if $smarty.session.sessid.username} -    |    - {$PALANG.pFooter_logged_as|replace:"%s":$smarty.session.sessid.username} - {/if} + {if isset($smarty.session.sessid)} + {if $smarty.session.sessid.username} +    |    + {$PALANG.pFooter_logged_as|replace:"%s":$smarty.session.sessid.username} + {/if} + {/if} {if $CONF.show_footer_text == 'YES' && $CONF.footer_link}    |    {$CONF.footer_text|escape}