mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01: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…
Reference in New Issue
Block a user