aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-11-09 14:32:24 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-11-09 14:32:24 +0100
commit5739317567f45895c8c9b5183c8db2886daf9872 (patch)
tree391247c540fbbefc7416410aa46e801dfbcd99bf /phpBB/phpbb/db
parentd8760568b6c13498f8bf26eb19d0a64af6373ff5 (diff)
parent671598656c8f04c8d072835b0fe26d12ca564067 (diff)
downloadforums-5739317567f45895c8c9b5183c8db2886daf9872.tar
forums-5739317567f45895c8c9b5183c8db2886daf9872.tar.gz
forums-5739317567f45895c8c9b5183c8db2886daf9872.tar.bz2
forums-5739317567f45895c8c9b5183c8db2886daf9872.tar.xz
forums-5739317567f45895c8c9b5183c8db2886daf9872.zip
Merge pull request #4023 from CHItA/ticket/14277
[ticket/14277] Fix undefined index error in migrations
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/tool/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php
index 69ac71abb7..a5ed62fd65 100644
--- a/phpBB/phpbb/db/migration/tool/module.php
+++ b/phpBB/phpbb/db/migration/tool/module.php
@@ -262,7 +262,7 @@ class module implements \phpbb\db\migration\tool\tool_interface
// Success
$module_log_name = ((isset($this->user->lang[$data['module_langname']])) ? $this->user->lang[$data['module_langname']] : $data['module_langname']);
- $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_MODULE_ADD', false, array($module_log_name));
+ $phpbb_log->add('admin', (isset($user->data['user_id'])) ? $user->data['user_id'] : ANONYMOUS, $user->ip, 'LOG_MODULE_ADD', false, array($module_log_name));
// Move the module if requested above/below an existing one
if (isset($data['before']) && $data['before'])