From 6f9c81a7afe43dfea87f3f037db22887a4323519 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 30 Mar 2001 02:40:18 +0000 Subject: [PATCH] This locks the preference table before deleting the user preferences. --- preferences/inc/hook_admin_deleteaccount.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preferences/inc/hook_admin_deleteaccount.inc.php b/preferences/inc/hook_admin_deleteaccount.inc.php index 330806130f..0ce7122c4e 100755 --- a/preferences/inc/hook_admin_deleteaccount.inc.php +++ b/preferences/inc/hook_admin_deleteaccount.inc.php @@ -17,5 +17,8 @@ global $phpgw, $account_id; } + $table_locks = Array('phpgw_preferences'); + $phpgw->db->lock($table_locks); $phpgw->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$account_id,__LINE__,__FILE__); + $phpgw->db->unlock(); ?>