mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 01:55:47 +00:00
Fixed error when starting fresh / without existing database file (references #976)
This commit is contained in:
parent
5b05254816
commit
38bb205a55
@ -18,7 +18,7 @@ class LocaleMiddleware extends BaseMiddleware
|
|||||||
|
|
||||||
protected function getLocale(Request $request)
|
protected function getLocale(Request $request)
|
||||||
{
|
{
|
||||||
if (GROCY_AUTHENTICATED)
|
if (defined('GROCY_AUTHENTICATED') && GROCY_AUTHENTICATED)
|
||||||
{
|
{
|
||||||
$locale = UsersService::getInstance()->GetUserSetting(GROCY_USER_ID, 'locale');
|
$locale = UsersService::getInstance()->GetUserSetting(GROCY_USER_ID, 'locale');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user