This commit is contained in:
snipe 2016-05-17 21:15:29 -07:00
parent ed9c6183c1
commit f9572ffa0c

View file

@ -110,7 +110,10 @@ class UsersController extends Controller
$data['password'] = Input::get('password');
if ($user->save()) {
$user->groups()->sync(Input::get('groups'));
if (Input::has('groups')) {
$user->groups()->sync(Input::get('groups'));
}
if ((Input::get('email_user') == 1) && (Input::has('email'))) {
// Send the credentials through email
$data = array();