Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Allow older app values to be set
Previously the app value `relativedates` were already used but set to an empty string in case of `false`.
This needs to be handled correctly for users updating from 27 to 28.

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Dec 13, 2023
commit 6faf997829ec5eb56a9a3f97ba4499dc9f9a26aa
2 changes: 1 addition & 1 deletion lib/Service/SettingsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getDateTimeFormat(): string {
* Load app config if dates should be displayed as relative dates
*/
public function getRelativeDates(): bool {
return json_decode($this->config->getAppValue('logreader', Constants::CONFIG_KEY_RELATIVEDATES, 'false'), flags: JSON_THROW_ON_ERROR);
return json_decode($this->config->getAppValue('logreader', Constants::CONFIG_KEY_RELATIVEDATES, 'false') ?: 'false', flags: JSON_THROW_ON_ERROR);
}

/**
Expand Down