fixed prob reported on the lists: new created account are not working

This commit is contained in:
Ralf Becker 2005-11-25 19:58:05 +00:00
parent fec07c13a3
commit b68c7922c0

View File

@ -321,7 +321,7 @@
$id = $account_data['account_id'] ? $account_data['account_id'] : $this->db->get_last_insert_id($this->table,'account_id');
if ($id > 0)
if ($account_info['account_type'] == 'g' && $id > 0) // create negative id for groups
{
$this->db->update($this->table,array('account_id' => -$id),array('account_id' => $id),__LINE__,__FILE__);
return -$id;