if (!empty($_SESSION[get_class($this)][$sesPrefix .'-auth'])) {
$a = unserialize($_SESSION[get_class($this)][$sesPrefix .'-auth']);
-// print_R($a);exit;
$u = DB_DataObject::factory($this->tableName()); // allow extending this ...
$u->autoJoin();
if ($u->get($a->id)) { /// && strlen($u->passwd)) { // should work out the pid .. really..
if(!empty($a->_extra)){
$user->_extra = $a->_extra;
}
- return clone($u);
+ return clone($user);
}
unset($_SESSION[get_class($this)][$sesPrefix .'-auth']);
}