DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Feb 2015 05:25:46 +0000 (13:25 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Feb 2015 05:25:46 +0000 (13:25 +0800)
DataObjects/Person.php

index bf7653b..01aa77b 100644 (file)
@@ -263,9 +263,9 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
         
         @session_start();
          
-        if (!empty($_SESSION[__CLASS__][$sesPrefix .'-auth'])) {
+        if (!empty($_SESSION[get_class($this)][$sesPrefix .'-auth'])) {
             // in session...
-            $a = unserialize($_SESSION[__CLASS__][$sesPrefix .'-auth']);
+            $a = unserialize($_SESSION[get_class($this)][$sesPrefix .'-auth']);
             
             $u = DB_DataObject::factory('Person');
             if ($u->get($a->id)) { //&& strlen($u->passwd)) {