Delete now locks the accounts table.

This commit is contained in:
skeeter 2001-03-30 04:21:10 +00:00
parent 95dc6489fc
commit 278bd972c1
2 changed files with 6 additions and 0 deletions

View File

@ -146,7 +146,10 @@
}
// Do this last since we are depending upon this record to get the account_lid above
$tables_array = Array('phpgw_accounts');
$this->db->lock($tables_array);
$this->db->query('DELETE FROM phpgw_accounts WHERE account_id='.$account_id);
$this->db->unlock();
}
function get_list($_type='both', $start = '',$sort = '', $order = '', $query = '', $offset = '')

View File

@ -72,7 +72,10 @@
$account_id = get_account_id($accountid);
// Do this last since we are depending upon this record to get the account_lid above
$tables_array = Array('phpgw_accounts');
$this->db->lock($tables_array);
$this->db->query('DELETE FROM phpgw_accounts WHERE account_id='.$account_id);
$this->db->unlock();
}