DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:29:28 +0000 (13:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:29:28 +0000 (13:29 +0800)
DataObjects/Core_person.php

index 700567b..8285350 100644 (file)
@@ -405,7 +405,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         
         //var_dump(array(get_class($this),$sesPrefix .'-auth'));
        
-        if (!empty($_SESSION[get_class($this)][$sesPrefix .'-auth'])) {
+        if (self::$authUser) {
             $a = unserialize($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             
             $u = DB_DataObject::factory($this->tableName()); // allow extending this ...