DataObjects/Core_company.php
[Pman.Core] / DataObjects / Core_person.php
index ea58464..1d38c88 100644 (file)
@@ -1219,19 +1219,20 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
          
         $db = $this->getDatabaseConnection();
         
-        $ff= HTML_FlexyFramework::get();
+        $ff = HTML_FlexyFramework::get();
         
-        if(empty($ff->Pman) || empty($ff->Pman->login_public)){
+        if(empty($ff->Pman) || empty($ff->Pman['login_public'])){
             return false;
         }
         
-        $sesPrefix = $ff->Pman->login_public . '-' .get_class($this) .'-'.$db->dsn['database'] ;
+        $sesPrefix = $ff->Pman['login_public'] . '-' .get_class($this) .'-'.$db->dsn['database'] ;
         
         $p = DB_DAtaObject::Factory($this->tableName());
         $p->get($this->pid());
         
         $_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$p->toArray());
         
+        return true;
     }
     
  }