File: includes/mcp/mcp_warn.php
Unmodified
Added
Modified
Removed
Line 386 | Line 386 |
---|
$user_row = $db->sql_fetchrow($result); $db->sql_freeresult($result);
|
$user_row = $db->sql_fetchrow($result); $db->sql_freeresult($result);
|
if (!$user_row)
| if (!$user_row || (int) $user_row['user_id'] === ANONYMOUS)
|
{ trigger_error('NO_USER'); }
| { trigger_error('NO_USER'); }
|
Line 603 | Line 603 |
---|
$db->sql_freeresult($result);
$phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_USER_WARNING', false, array(
|
$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'] ));
| 'post_id' => $post_id, $user_row['username'] ));
|