fix for state check if user was already logged in without state

This commit is contained in:
Andy Miller
2015-11-19 13:43:15 -07:00
parent 63e083ea37
commit 146295fb1e

View File

@@ -142,7 +142,7 @@ class User extends Data
return false;
}
if ($this->state !== 'enabled') {
if (isset($this->state) && $this->state !== 'enabled') {
return false;
}