From b0b796381741cef142d5f76c2571e081c90a1ed3 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Tue, 13 Jun 2006 18:50:21 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions_messenger.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 71399446ad..165ec936c9 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -269,7 +269,10 @@ class messenger global $user, $phpEx, $phpbb_root_path; // Session doesn't exist, create it - $user->session_begin(); + if (!isset($user->session_id) || $user->session_id === '') + { + $user->session_begin(); + } add_log('critical', 'LOG_ERROR_' . $type, $msg); }