mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
6980b7656c
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');
|
||||
}
|
||||
|
|
|
@ -390,7 +390,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