diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-01-15 11:15:56 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-15 11:15:56 +0100 |
commit | 295a424fc72a4e810d89a183f43cba3c2a6fee76 (patch) | |
tree | 67f13dd48a6e34be045d2b52bcc976b87cb620b5 /phpBB/phpbb | |
parent | f979d2c7b2f93bc734ae7b87debb4457f62ea24c (diff) | |
parent | d045822cd8cc2220a2ad3e159e3b688cb4049c12 (diff) | |
download | forums-295a424fc72a4e810d89a183f43cba3c2a6fee76.tar forums-295a424fc72a4e810d89a183f43cba3c2a6fee76.tar.gz forums-295a424fc72a4e810d89a183f43cba3c2a6fee76.tar.bz2 forums-295a424fc72a4e810d89a183f43cba3c2a6fee76.tar.xz forums-295a424fc72a4e810d89a183f43cba3c2a6fee76.zip |
Merge pull request #4117 from Elsensee/ticket/14403
[ticket/14403] Don't expect user_id and user_ip in phpbb\log
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/log/log.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php index 3d995b4e4a..d46e3d1f3f 100644 --- a/phpBB/phpbb/log/log.php +++ b/phpBB/phpbb/log/log.php @@ -229,8 +229,8 @@ class log implements \phpbb\log\log_interface } $sql_ary = array( - 'user_id' => $user_id, - 'log_ip' => $log_ip, + 'user_id' => !empty($user_id) ? $user_id : ANONYMOUS, + 'log_ip' => !empty($log_ip) ? $log_ip : '', 'log_time' => $log_time, 'log_operation' => $log_operation, ); |