mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Fixed error when starting fresh / without existing database file (references #976)
This commit is contained in:
@@ -18,7 +18,7 @@ class LocaleMiddleware extends BaseMiddleware
|
||||
|
||||
protected function getLocale(Request $request)
|
||||
{
|
||||
if (GROCY_AUTHENTICATED)
|
||||
if (defined('GROCY_AUTHENTICATED') && GROCY_AUTHENTICATED)
|
||||
{
|
||||
$locale = UsersService::getInstance()->GetUserSetting(GROCY_USER_ID, 'locale');
|
||||
|
||||
|
Reference in New Issue
Block a user