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 12:28:25 +00:00
parent 62805cc294
commit 24481b5274

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)