diff options
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 70e8cb7c6c..604d0d3870 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1961,7 +1961,7 @@ function add_log() $data = (!sizeof($args)) ? '' : serialize($args); $sql_ary = array( - 'user_id' => $user->data['user_id'], + 'user_id' => (empty($user->data)) ? ANONYMOUS : $user->data['user_id'], 'log_ip' => $user->ip, 'log_time' => time(), 'log_operation' => $action, |