diff options
-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(){ |