fixed undefined user id

fixed:

Warning: Use of undefined constant GROCY_USER_ID - assumed
'GROCY_USER_ID' (this will throw an Error in a future version of PHP) in
/www/controllers/BaseController.php on line 47
This commit is contained in:
talmai 2018-10-19 21:11:31 -04:00
parent aa03ce0593
commit bbebb1dff5

View File

@ -44,7 +44,9 @@ class BaseController
try {
$usersService = new UsersService();
$container->view->set('userSettings', $usersService->GetUserSettings(GROCY_USER_ID));
if (defined('GROCY_USER_ID')) {
$container->view->set('userSettings', $usersService->GetUserSettings(GROCY_USER_ID));
}
}
catch (\Exception $ex)
{