mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17082] Remove ability to warn anonymous
PHPBB3-17082
This commit is contained in:
parent
11e68e910b
commit
7d29f133e5
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue