aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-01-10 17:43:10 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2016-01-10 17:43:10 +0100
commit0cc41b94b1715ed6ae0175f77403410552f671af (patch)
treee1dac35c9bbb4cf4577b1d262c5af9c292f31d7c /phpBB/phpbb
parentd64680983a5fa06a737a1ae7e164cb7f67a5a53c (diff)
downloadforums-0cc41b94b1715ed6ae0175f77403410552f671af.tar
forums-0cc41b94b1715ed6ae0175f77403410552f671af.tar.gz
forums-0cc41b94b1715ed6ae0175f77403410552f671af.tar.bz2
forums-0cc41b94b1715ed6ae0175f77403410552f671af.tar.xz
forums-0cc41b94b1715ed6ae0175f77403410552f671af.zip
[ticket/14403] Don't expect user_id and user_ip in phpbb\log
PHPBB3-14403
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/log/log.php4
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,
);