when inserting new set of preferences on preferences::copy_preferences, make sure we copy ONLY the pref and its app and owner, not its ID

This commit is contained in:
Klaus Leithoff 2015-08-20 13:13:49 +00:00
parent d462aca4ff
commit ece7a07030

View File

@ -830,7 +830,7 @@ class preferences
{
$prefs = array_merge(self::unserialize($values), $prefs);
}
unset($row['preference_id']);
//error_log(__LINE__.': '.__METHOD__."() inserting app=$row[preference_app], owner=$row[preference_owner]: ".array2string($prefs));
$db->insert(self::TABLE, array(
'preference_value' => json_encode($prefs)