1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 23:55:26 +02:00

Merge pull request #6460 from Crizz0/ticket/17089

[ticket/17089] If user warned without post assume 0 for forum/topic_id
This commit is contained in:
Marc Alexander 2023-02-06 20:05:05 +01:00
commit 3584d79e87
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -603,8 +603,8 @@ function add_warning($user_row, $warning, $send_pm = true, $post_id = 0)
$db->sql_freeresult($result);
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_WARNING', false, array(
'forum_id' => $row['forum_id'],
'topic_id' => $row['topic_id'],
'forum_id' => $row['forum_id'] ?? 0,
'topic_id' => $row['topic_id'] ?? 0,
'post_id' => $post_id,
$user_row['username']
));