diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index dcd18e4498..5a368ecde9 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -492,7 +492,7 @@ class UsersController extends Controller } /** - * Notify a specific user via email with all of his assigned assets. + * Notify a specific user via email with all of their assigned assets. * * @author [Lukas Fehling] [] * @since [v6.0.13] @@ -505,10 +505,10 @@ class UsersController extends Controller $user = User::findOrFail($id); if (empty($user->email)) { - return response()->json(Helper::formatStandardApiResponse(‘error’, $accessory, trans('admin/accessories/message.inventorynotification.error'))); + return response()->json(Helper::formatStandardApiResponse(‘error’, null, trans('admin/users/message.inventorynotification.error'))); } - return response()->Helper::formatStandardApiResponse('success', $accessory, trans('admin/accessories/message.inventorynotification.success')); + return response()->Helper::formatStandardApiResponse('success', null, trans('admin/users/message.inventorynotification.success')); } diff --git a/resources/lang/en/admin/accessories/message.php b/resources/lang/en/admin/accessories/message.php index 5cbfdeb43a..8099a3ac82 100644 --- a/resources/lang/en/admin/accessories/message.php +++ b/resources/lang/en/admin/accessories/message.php @@ -33,10 +33,6 @@ return array( 'user_does_not_exist' => 'That user is invalid. Please try again.' ), - 'inventorynotification' => array( - 'error' => 'This user has no email set.', - 'success' => 'The user has been notified about their current inventory.' - ) ); diff --git a/resources/lang/en/admin/users/message.php b/resources/lang/en/admin/users/message.php index 29f82db38b..11292a0697 100644 --- a/resources/lang/en/admin/users/message.php +++ b/resources/lang/en/admin/users/message.php @@ -59,4 +59,8 @@ return array( 'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, doc, docx, pdf, and txt.', ), + 'inventorynotification' => array( + 'error' => 'This user has no email set.', + 'success' => 'The user has been notified about their current inventory.' + ) ); \ No newline at end of file