From 5dece2fe4c72ca53e8feaac1e3025f3778132ecc Mon Sep 17 00:00:00 2001 From: john Date: Thu, 11 Oct 2018 11:51:42 +0800 Subject: [PATCH] DataObjects/Core_person.php --- DataObjects/Core_person.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.39.2