Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-09-24 23:31:21 +0300
committerPhie <phie@phie.ovh>2019-09-24 23:31:21 +0300
commitab7eac4cbc2e74924ce6af5cdd6e2d7e0925762d (patch)
treed0d2fa443a9721dbe94ffe6f05b706ae358eaab9 /lib/Controller
parent4656e8dead4441fb4b67aceacd60954b60591c50 (diff)
send json for settings
Diffstat (limited to 'lib/Controller')
-rwxr-xr-xlib/Controller/NoteController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index a1d4798..2d6b171 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -174,7 +174,10 @@
* @NoAdminRequired
*/
public function getUISettings() {
- return $this->Config->getUserValue($this->userId, $this->appName,"browser_settings");
+ $settings = $this->Config->getUserValue($this->userId, $this->appName,"browser_settings");
+ if(empty($settings))
+ $settings = "{}";
+ return json_decode($settings);
}
private function getRecentFile(){