DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Mon, 2 Mar 2015 07:52:49 +0000 (15:52 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 2 Mar 2015 07:52:49 +0000 (15:52 +0800)
DataObjects/Person.php

index bf80f70..99cdce6 100644 (file)
@@ -381,7 +381,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
         if (!empty($_SESSION[get_class($this)][$sesPrefix .'-auth'])) {
             $a = unserialize($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             
-            $u = DB_DataObject::factory($a->__table); // allow extending this ...
+            $u = DB_DataObject::factory($this->getTableName()); // allow extending this ...
             if ($u->get($a->id)) { /// && strlen($u->passwd)) {
                 return clone($u);
             }