same as previous commit, but for the delete

This commit is contained in:
Miles Lott 2002-05-19 22:59:00 +00:00
parent dc9a06b7ce
commit 852c11cec9

View File

@ -215,8 +215,8 @@
if (! $GLOBALS['phpgw']->acl->check('session_only_preferences',1,'preferences')) if (! $GLOBALS['phpgw']->acl->check('session_only_preferences',1,'preferences'))
{ {
$this->db->transaction_begin(); $this->db->transaction_begin();
$this->db->query("DELETE FROM phpgw_preferences WHERE preference_owner='" . $this->account_id $this->db->query("DELETE FROM phpgw_preferences WHERE preference_owner=" . intval($this->account_id),
. "'",__LINE__,__FILE__); __LINE__,__FILE__);
if (floor(phpversion()) < 4) if (floor(phpversion()) < 4)
{ {