diff --git a/lib/Service/SettingsService.php b/lib/Service/SettingsService.php index dd561482..91932a4b 100644 --- a/lib/Service/SettingsService.php +++ b/lib/Service/SettingsService.php @@ -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); } /**