diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-05-29 18:28:00 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-05-29 18:28:00 +0000 |
commit | 74ed9436b9d44a08ec836611dee60353d9020614 (patch) | |
tree | 7089d40730971a229ea968e62f8d23c8429577e1 /admin.php | |
parent | 572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa (diff) | |
download | phpicalendar-74ed9436b9d44a08ec836611dee60353d9020614.tar.gz phpicalendar-74ed9436b9d44a08ec836611dee60353d9020614.tar.bz2 phpicalendar-74ed9436b9d44a08ec836611dee60353d9020614.zip |
More error_reporting cleanup.
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -16,7 +16,7 @@ if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");} if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");} // Logout by clearing session variables -if ($action == "logout") { +if ((isset($action)) && ($action == "logout")) { $HTTP_SESSION_VARS['phpical_loggedin'] = FALSE; unset($HTTP_SESSION_VARS['phpical_username']); unset($HTTP_SESSION_VARS['phpical_password']); @@ -77,8 +77,11 @@ else { // If User is Not Logged In, Display The Login Page if ($is_loged_in == FALSE) { - if (isset($username)) + if (isset($username)) { $login_error = "<font color=\"red\">$invalid_login_lang</font>"; + } else { + $login_error = ''; + } echo <<<EOT <form action="{$HTTP_SERVER_VARS['PHP_SELF']}" method="post"> |