diff options
author | Phie <phie@phie.ovh> | 2019-10-05 18:17:14 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-10-05 18:17:14 +0300 |
commit | b8190976c5aa773327d07841faa162792657607e (patch) | |
tree | e664ec13ec4ebbfe4721904966bdc0a7710216a4 /lib | |
parent | 1bc73dbf769028af921e32254c4fa523425b3f0b (diff) |
Revert "Revert "send json for settings""
This reverts commit bff682568b997b949e4878dfc5e4db4f5c32c8dc.
Diffstat (limited to 'lib')
-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 ec13695..82c9a9b 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -175,7 +175,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(){ |