Skip to content

Commit

Permalink
Merge pull request #3219 from nextcloud/fix/preferences
Browse files Browse the repository at this point in the history
fix preferences
  • Loading branch information
dartcafe authored Dec 22, 2023
2 parents 582ba2d + 92ec8e6 commit 8b3d349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Db/Preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct() {
}

public function getPreferences_decoded(): mixed {
return json_decode($this->getPreferences());
return json_decode((string) $this->getPreferences());
}

/**
Expand Down Expand Up @@ -107,7 +107,7 @@ public function getCheckCalendarsAfter(): int {
*/
public function jsonSerialize(): array {
return [
'preferences' => json_decode($this->preferences ?? ''),
'preferences' => json_decode((string) $this->preferences),
];
}
}

0 comments on commit 8b3d349

Please sign in to comment.