From 852c11cec988e405ecb8a6d9486481caf12a99a2 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 19 May 2002 22:59:00 +0000 Subject: [PATCH] same as previous commit, but for the delete --- phpgwapi/inc/class.preferences.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index 4e1c03e09c..f973d6a092 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -215,8 +215,8 @@ if (! $GLOBALS['phpgw']->acl->check('session_only_preferences',1,'preferences')) { $this->db->transaction_begin(); - $this->db->query("DELETE FROM phpgw_preferences WHERE preference_owner='" . $this->account_id - . "'",__LINE__,__FILE__); + $this->db->query("DELETE FROM phpgw_preferences WHERE preference_owner=" . intval($this->account_id), + __LINE__,__FILE__); if (floor(phpversion()) < 4) {