[ticket/12360] Fix duplicated creation of session when logging out the user

In 7d8b578 this line was introduced to fix a bug with style.php.

Later since 1d42d1b a new session is always created after
killing the old one.

This causes a duplicated creation of the session everytime
the user logs itself out.

PHPBB3-12360
This commit is contained in:
Oliver Schramm 2014-04-06 23:12:20 +02:00
parent f0176b5393
commit 1a56400a45

View file

@ -94,7 +94,6 @@ switch ($mode)
if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
{
$user->session_kill();
$user->session_begin();
}
else if ($user->data['user_id'] != ANONYMOUS)
{