mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Only create a session if on doesn't exist. In theory, checking for the presence of a sid should be enough to determine this.....
git-svn-id: file:///svn/phpbb/trunk@6057 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
81d7bbff36
commit
b0b7963817
1 changed files with 4 additions and 1 deletions
|
@ -269,7 +269,10 @@ class messenger
|
||||||
global $user, $phpEx, $phpbb_root_path;
|
global $user, $phpEx, $phpbb_root_path;
|
||||||
|
|
||||||
// Session doesn't exist, create it
|
// Session doesn't exist, create it
|
||||||
|
if (!isset($user->session_id) || $user->session_id === '')
|
||||||
|
{
|
||||||
$user->session_begin();
|
$user->session_begin();
|
||||||
|
}
|
||||||
|
|
||||||
add_log('critical', 'LOG_ERROR_' . $type, $msg);
|
add_log('critical', 'LOG_ERROR_' . $type, $msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue