diff -u b/userprotect.module b/userprotect.module --- b/userprotect.module +++ b/userprotect.module @@ -279,7 +279,7 @@ $account = $form['account']['#value']; if (isset($form['account']['roles_change']) && !userprotect_check_bypass('up_roles') && userprotect_get_user_protection($account, 'up_roles')) { $form['account']['roles_change']['#disabled'] = TRUE; - userprotect_form_display_protections($account, ['up_roles' => TRUE]); + userprotect_form_display_protections($account, array('up_roles' => TRUE)); } }