fix for delete with empty account_id

This commit is contained in:
Ralf Becker 2003-10-01 14:50:34 +00:00
parent 7451250ae7
commit 30a4f77153

View File

@ -125,7 +125,7 @@
/* 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->query('DELETE FROM phpgw_accounts WHERE account_id=' . intval($account_id),__LINE__,__FILE__);
$this->db->unlock();
}