mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix warnings when user is logged out #2680
This commit is contained in:
parent
73e153be60
commit
798b0cd1d6
3 changed files with 4 additions and 4 deletions
|
|
@ -222,11 +222,11 @@ class SpamfilterModel extends Spamfilter
|
|||
{
|
||||
return false;
|
||||
}
|
||||
if ($user->is_admin === 'Y')
|
||||
if ($user && $user->is_admin === 'Y')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ($config->captcha->target_users !== 'everyone' && $user->member_srl)
|
||||
if ($config->captcha->target_users !== 'everyone' && $user && $user->member_srl)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue