aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/log/log.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/log/log.php')
-rw-r--r--phpBB/phpbb/log/log.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php
index 3d995b4e4a..094ff78abe 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,
);
@@ -402,7 +402,7 @@ class log implements \phpbb\log\log_interface
}
}
- $sql = 'DELETE FROM ' . LOG_TABLE . "
+ $sql = 'DELETE FROM ' . $this->log_table . "
$sql_where";
$this->db->sql_query($sql);