mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 06:08:19 +01:00
Merge pull request #6446 from rubencm/ticket/17082
[ticket/17082] Remove ability to warn anonymous
This commit is contained in:
commit
c62d9e4c05
@ -98,7 +98,7 @@ class mcp_notes
|
||||
$userrow = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$userrow)
|
||||
if (!$userrow || (int) $userrow['user_id'] === ANONYMOUS)
|
||||
{
|
||||
trigger_error('NO_USER');
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ class mcp_warn
|
||||
$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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user