* [ADD] New encryption schema by using Defuse/php-encryption library. WARNING: work in progress

This commit is contained in:
nuxsmin
2017-02-20 18:40:51 +01:00
parent 9b11e3eb3f
commit 28afca032d

View File

@@ -507,7 +507,9 @@ class Init
*/
public static function isLoggedIn()
{
return (DiFactory::getDBStorage()->getDbStatus() === 0 && Session::getUserData()->getUserLogin());
return (DiFactory::getDBStorage()->getDbStatus() === 0
&& Session::getUserData()->getUserLogin()
&& is_object(Session::getUserPreferences()));
}
/**