This locks the preference table before deleting the user preferences.

This commit is contained in:
skeeter 2001-03-30 02:40:18 +00:00
parent 357692004e
commit 6f9c81a7af

View File

@ -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();
?>