spamblock_bee: Fix PHP 8 error when not logged in
This commit is contained in:
parent
e83820bb5e
commit
11519fe118
|
@ -610,7 +610,7 @@ class serendipity_event_spamblock_bee extends serendipity_event
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
// Don't put extras on admin menu. They are not working there: ...or other backend forms like guestbook
|
// Don't put extras on admin menu. They are not working there: ...or other backend forms like guestbook
|
||||||
if ((isset($eventData['GET']['action']) && $eventData['GET']['action']=='admin') || (int)$serendipity['serendipityUserlevel'] >= (int)USERLEVEL_ADMIN) return;
|
if ((isset($eventData['GET']['action']) && $eventData['GET']['action']=='admin') || (int)($serendipity['serendipityUserlevel'] ?? null) >= (int)USERLEVEL_ADMIN) return;
|
||||||
|
|
||||||
// Honeypot
|
// Honeypot
|
||||||
if (serendipity_db_bool($this->useHoneyPot)) {
|
if (serendipity_db_bool($this->useHoneyPot)) {
|
||||||
|
|
Loading…
Reference in a new issue