From cfa22b99152a5ea7c796907de72d58092de609c1 Mon Sep 17 00:00:00 2001 From: Ralf Becker <ralfbecker@outdoor-training.de> Date: Tue, 20 Sep 2005 08:19:04 +0000 Subject: [PATCH] fix for register_long_arrays off --- preferences/inc/hook_deleteaccount.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences/inc/hook_deleteaccount.inc.php b/preferences/inc/hook_deleteaccount.inc.php index 839b7cd4ff..74dff14d16 100755 --- a/preferences/inc/hook_deleteaccount.inc.php +++ b/preferences/inc/hook_deleteaccount.inc.php @@ -16,6 +16,6 @@ $table_locks = Array('phpgw_preferences'); $GLOBALS['egw']->db->lock($table_locks); - $GLOBALS['egw']->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$GLOBALS['HTTP_POST_VARS']['account_id'],__LINE__,__FILE__); + $GLOBALS['egw']->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.(int)$_POST['account_id'],__LINE__,__FILE__); $GLOBALS['egw']->db->unlock(); ?>