diff --git a/profile2.module b/profile2.module index 4001125..badcfa9 100644 --- a/profile2.module +++ b/profile2.module @@ -517,7 +517,7 @@ function profile2_form_submit_handler(&$form, &$form_state) { // Get the values that we need to define which notification // should be sent to the user. Generally this is a cutted version // from user_register_submit() callback. - $admin = $form_state['values']['administer_users']; + $admin = !empty($form_state['values']['administer_users']); $account = $form_state['user']; $notify = !empty($form_state['values']['notify']);