summaryrefslogtreecommitdiff
path: root/classes/rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 12:58:00 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 12:58:00 +0300
commit00d0cb8c814b7c2a5c889417d8e0023b994a55a7 (patch)
tree215a141470b6b97b0ec0875d5c5275fca088a0b9 /classes/rpc.php
parent2621fe795551b99c6c6ca9d5c2b7115345decca1 (diff)
remove unused data from schema files
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-xclasses/rpc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rpc.php b/classes/rpc.php
index fe6075f75..76aaa3633 100755
--- a/classes/rpc.php
+++ b/classes/rpc.php
@@ -20,7 +20,7 @@ class RPC extends Handler_Protected {
$key = clean($_REQUEST['key']);
$value = $_REQUEST['value'];
- set_pref($key, $value, false, $key != 'USER_STYLESHEET');
+ set_pref($key, $value, $_SESSION["uid"], $key != 'USER_STYLESHEET');
print json_encode(array("param" =>$key, "value" => $value));
}
@@ -393,7 +393,7 @@ class RPC extends Handler_Protected {
$params["is_default_pw"] = Pref_Prefs::isdefaultpassword();
$params["label_base_index"] = LABEL_BASE_INDEX;
- $theme = get_pref("USER_CSS_THEME", false);
+ $theme = get_pref("USER_CSS_THEME");
$params["theme"] = theme_exists($theme) ? $theme : "";
$params["plugins"] = implode(", ", PluginHost::getInstance()->get_plugin_names());