mirror of
https://github.com/friendica/friendica
synced 2025-02-02 13:38:51 +00:00
Set first_day_of_week config value default correctly
↪ Config value could be empty string and cause a script error
This commit is contained in:
parent
5a00a2c441
commit
d9c11bb853
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ class Temporal
|
|||
bool $required = false): string
|
||||
{
|
||||
// First day of the week (0 = Sunday)
|
||||
$firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week', 0);
|
||||
$firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week') ?: 0;
|
||||
|
||||
$lang = DI::l10n()->toISO6391(DI::l10n()->getCurrentLang());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue