From 4cfe66f42fe90fed6e785d58403ff25b2267dc4d Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 8 Mar 2011 08:48:47 +0000 Subject: - small code cleanup --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 6ebc48e3d..440a245c5 100644 --- a/index.php +++ b/index.php @@ -95,11 +95,11 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { } else if ($auth['valid'] && !$auth['abort'] && !empty($auth['host']) && !empty($auth['user']) && - $RCMAIL->login($auth['user'], $auth['pass'], $auth['host'])) { - // create new session ID - $RCMAIL->session->remove('temp'); - // regenerate the session, don't destroy the current session + $RCMAIL->login($auth['user'], $auth['pass'], $auth['host']) + ) { + // create new session ID, don't destroy the current session // it was destroyed already by $RCMAIL->kill_session() above + $RCMAIL->session->remove('temp'); $RCMAIL->session->regenerate_id(false); // send auth cookie if necessary -- cgit v1.2.3