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:
-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 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(){