From d77455309b0edbcc65e4a347dc777542b1189328 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 9 Nov 2015 15:27:10 +0100 Subject: [PATCH] [ticket/14278] Check if user_id is set and fall back to ANONYMOUS PHPBB3-14278 --- phpBB/phpbb/install/module/update_database/task/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/install/module/update_database/task/update.php b/phpBB/phpbb/install/module/update_database/task/update.php index 2d640134a3..84ec6f73f5 100644 --- a/phpBB/phpbb/install/module/update_database/task/update.php +++ b/phpBB/phpbb/install/module/update_database/task/update.php @@ -172,7 +172,7 @@ class update extends task_base { $this->log->add( 'admin', - $this->user->data['user_id'], + (isset($this->user->data['user_id'])) ? $this->user->data['user_id'] : ANONYMOUS, $this->user->ip, 'LOG_UPDATE_DATABASE', false,