diff options
author | alecpl <alec@alec.pl> | 2011-03-08 08:48:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-03-08 08:48:47 +0000 |
commit | 4cfe66f42fe90fed6e785d58403ff25b2267dc4d (patch) | |
tree | c4f9b4ff13e4a5720d2f58767e9f056d40a0c0bc | |
parent | c294eaa3f27ca5f38101eb4a1692111ac0ee82f8 (diff) |
- small code cleanup
-rw-r--r-- | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |