do NOT delete preferences, before writing them in preferences::save_repository (might be cause for race-condition causing preferences to be lost)

This commit is contained in:
Ralf Becker 2012-10-31 14:16:17 +00:00
parent 8c4125e75c
commit 06bc5ea552

View File

@ -769,8 +769,6 @@ class preferences
(!($old_prefs = $this->cache_read($account_id)) || $old_prefs[$account_id] != $prefs))
{
$this->db->transaction_begin();
$this->db->delete($this->table,array('preference_owner' => $account_id),__LINE__,__FILE__);
foreach($prefs as $app => $value)
{
if (!is_array($value) || !$value)