From 94c0743cbac1e48dd243851f37172a29b6b93c6b Mon Sep 17 00:00:00 2001 From: thomascube Date: Sat, 30 Jul 2011 15:38:29 +0000 Subject: [PATCH] Don't show session error message on logout --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }