aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_messenger.php5
1 files changed, 4 insertions, 1 deletions
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);
}