From 86d07d367cdaa0152190bfa2a01cd0df99fc454d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 26 Sep 2015 17:31:53 +0300 Subject: [PATCH] rpc, setpref: properly save settings to active profile --- classes/rpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 classes/rpc.php diff --git a/classes/rpc.php b/classes/rpc.php old mode 100644 new mode 100755 index a84883bf..1c733ffc --- a/classes/rpc.php +++ b/classes/rpc.php @@ -123,7 +123,7 @@ class RPC extends Handler_Protected { $key = $_REQUEST['key']; $value = str_replace("\n", "
", $_REQUEST['value']); - set_pref($key, $value, $_SESSION['uid'], $key != 'USER_STYLESHEET'); + set_pref($key, $value, false, $key != 'USER_STYLESHEET'); print json_encode(array("param" =>$key, "value" => $value)); } -- 2.39.5