Skip to content

Commit

Permalink
avoid error logging #3216
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <[email protected]>
  • Loading branch information
dartcafe committed Dec 22, 2023
1 parent 582ba2d commit 92ec8e6
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 92ec8e6

Please sign in to comment.