alecpl
2011-03-08 4cfe66f42fe90fed6e785d58403ff25b2267dc4d
- small code cleanup


1 files modified
8 ■■■■ changed files
index.php 8 ●●●● patch | view | raw | blame | history
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