mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/17089] If user warned without post assume 0 for forum/topic_id
PHPBB3-17089
This commit is contained in:
parent
458940217b
commit
b7258788cc
1 changed files with 2 additions and 2 deletions
|
@ -603,8 +603,8 @@ function add_warning($user_row, $warning, $send_pm = true, $post_id = 0)
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_WARNING', false, array(
|
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_WARNING', false, array(
|
||||||
'forum_id' => $row['forum_id'],
|
'forum_id' => $row['forum_id'] ?? 0,
|
||||||
'topic_id' => $row['topic_id'],
|
'topic_id' => $row['topic_id'] ?? 0,
|
||||||
'post_id' => $post_id,
|
'post_id' => $post_id,
|
||||||
$user_row['username']
|
$user_row['username']
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Reference in a new issue