From 06bc5ea552c3130ca8fe0c9e7c3426de0b38727b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 31 Oct 2012 14:16:17 +0000 Subject: [PATCH] do NOT delete preferences, before writing them in preferences::save_repository (might be cause for race-condition causing preferences to be lost) --- phpgwapi/inc/class.preferences.inc.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index 4f40925410..1bb112abd6 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -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)