summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-07-30 15:38:29 +0000
committerthomascube <thomas@roundcube.net>2011-07-30 15:38:29 +0000
commit94c0743cbac1e48dd243851f37172a29b6b93c6b (patch)
tree929ec40ef8528dd0cabfc8ded34387ea1bcbc3d8
parentfcc7f861b170596c6970aecb1ddc87a3567b112f (diff)
Don't show session error message on logout
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 4b887c7f4..001e6f5c9 100644
--- a/index.php
+++ b/index.php
@@ -155,7 +155,7 @@ else if ($RCMAIL->task != 'login' && $_SESSION['user_id'] && $RCMAIL->action !=
// not logged in -> show login page
if (empty($RCMAIL->user->ID)) {
// log session failures
- if ($RCMAIL->task != 'login' && !$session_error && ($sess_id = $_COOKIE[ini_get('session.name')])) {
+ if ($RCMAIL->task != 'login' && $RCMAIL->task != 'logout' && !$session_error && ($sess_id = $_COOKIE[ini_get('session.name')])) {
$RCMAIL->session->log("Aborted session " . $sess_id . "; no valid session data found");
$session_error = true;
}