From 30a4f771539123c2fb3523074b50915c79a963e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 1 Oct 2003 14:50:34 +0000 Subject: [PATCH] fix for delete with empty account_id --- phpgwapi/inc/class.accounts_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index e07833d55a..9ac39548a7 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -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(); }