mirror of
https://github.com/getgrav/grav.git
synced 2026-06-18 13:29:34 +02:00
fix for state check if user was already logged in without state
This commit is contained in:
@@ -142,7 +142,7 @@ class User extends Data
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->state !== 'enabled') {
|
||||
if (isset($this->state) && $this->state !== 'enabled') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user