DataObjects/Core_person.php
authorjohn <john@roojs.com>
Thu, 11 Oct 2018 03:34:48 +0000 (11:34 +0800)
committerjohn <john@roojs.com>
Thu, 11 Oct 2018 03:34:48 +0000 (11:34 +0800)
DataObjects/Core_person.php

index 3f6753f..2e99395 100644 (file)
@@ -777,6 +777,8 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             
             $hash = $this->getOathKey();
             
+            $_SESSION[__CLASS__] = isset($_SESSION[__CLASS__]) ? $_SESSION[__CLASS__] : array();
+            $_SESSION[__CLASS__]['oath'] = isset($_SESSION[__CLASS__]['oath']) ? $_SESSION[__CLASS__]['oath'] : array();
             $_SESSION[__CLASS__]['oath'][$person->id] = $hash;
 
             $qrcode = $person->generateQRCode($hash);