mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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;
|
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->query('DELETE FROM phpgw_preferences WHERE preference_owner='.$account_id,__LINE__,__FILE__);
|
||||||
|
$phpgw->db->unlock();
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user