aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-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 5365b55530..112f09f8cc 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -207,7 +207,10 @@ class messenger
function error($type, $msg)
{
- global $phpEx, $phpbb_root_path;
+ global $user, $phpEx, $phpbb_root_path;
+
+ // Session doesn't exist, create it
+ $user->start();
include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
add_log('critical', $type . '_ERROR', $msg);