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

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2023-02-06 20:05:16 +01:00
commit 1d17da4a4c
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -611,8 +611,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']
));