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-10-05 18:17:14 +0300
committerPhie <phie@phie.ovh>2019-10-05 18:17:14 +0300
commitb8190976c5aa773327d07841faa162792657607e (patch)
treee664ec13ec4ebbfe4721904966bdc0a7710216a4
parent1bc73dbf769028af921e32254c4fa523425b3f0b (diff)
Revert "Revert "send json for settings""
This reverts commit bff682568b997b949e4878dfc5e4db4f5c32c8dc.
-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(){