diff options
author | Phie <phie@phie.ovh> | 2019-09-24 23:31:21 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-09-24 23:31:21 +0300 |
commit | ab7eac4cbc2e74924ce6af5cdd6e2d7e0925762d (patch) | |
tree | d0d2fa443a9721dbe94ffe6f05b706ae358eaab9 /lib/Controller | |
parent | 4656e8dead4441fb4b67aceacd60954b60591c50 (diff) |
send json for settings
Diffstat (limited to 'lib/Controller')
-rwxr-xr-x | lib/Controller/NoteController.php | 5 |
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(){ |