Permalink
Browse files

- small code cleanup

  • Loading branch information...
1 parent c294eaa commit 4cfe66f42fe90fed6e785d58403ff25b2267dc4d @alecpl alecpl committed Mar 8, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 index.php
View
8 index.php
@@ -95,11 +95,11 @@
}
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

0 comments on commit 4cfe66f

Please sign in to comment.