X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_person.php;h=7b71f3c5612d8c6db097595d929fecadbe76c473;hp=88e6ab88dd895066bff3246cc1a89230c313bdf2;hb=5dece2fe4c72ca53e8feaac1e3025f3778132ecc;hpb=7769da58df66519e4f3fbbeb7a026b772458706e diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 88e6ab88..7b71f3c5 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -778,9 +778,11 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $hash = $this->generateOathKey(); $_SESSION[__CLASS__] = - isset($_SESSION[__CLASS__]) ? $_SESSION[__CLASS__] : array(); + isset($_SESSION[__CLASS__]) ? + $_SESSION[__CLASS__] : array(); $_SESSION[__CLASS__]['oath'] = - isset($_SESSION[__CLASS__]['oath']) ? $_SESSION[__CLASS__]['oath'] : array(); + isset($_SESSION[__CLASS__]['oath']) ? + $_SESSION[__CLASS__]['oath'] : array(); $_SESSION[__CLASS__]['oath'][$person->id] = $hash; @@ -794,7 +796,6 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject } if(!empty($q['two_factor_auth_code'])) { - $person = DB_DataObject::factory('core_person'); $person->get($q['id']); $o = clone($person);