mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
This locks the preference table before deleting the user preferences.
This commit is contained in:
parent
357692004e
commit
6f9c81a7af
@ -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();
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user