fixed condition when logout button appears.

This commit is contained in:
phear 2005-10-09 22:16:33 +00:00
parent 27307791fd
commit 739033c065

View file

@ -39,7 +39,7 @@ def footer(req,form):
except: #not logged in
username = ""
sessionid = ""
if (username == "") or (sessionid == "") or ("logout" not in form.keys()):
if ((username != "") and (sessionid != "")) and ("logout" not in form.keys()):
data = """
<form method="post">
<input type="hidden" name="sessionid" value="%s">