set the default account_id again

This commit is contained in:
skeeter 2001-03-21 06:05:44 +00:00
parent 30bae00dc9
commit e7a9f708bc
2 changed files with 5 additions and 2 deletions

View File

@ -41,7 +41,10 @@
$this->db = $phpgw->db;
$this->account_id = get_account_id($account_id);
if($account_id != '')
{
$this->account_id = get_account_id($account_id);
}
}
function read()

View File

@ -232,7 +232,7 @@
$this->account_id = $phpgw->accounts->name2id($this->account_lid);
}
$phpgw_info['user']['account_id'] = $this->account_id;
$phpgw->accounts->account_id = $this->account_id;
$phpgw->accounts->accounts($this->account_id);
$this->sessionid = md5($phpgw->common->randomstring(10));
$this->kp3 = md5($phpgw->common->randomstring(15));