Commit e9f8dc82 authored by webchick's avatar webchick

#480660 follow-up by c960657: unset variables, since array_slice() can cause...

#480660 follow-up by c960657: unset variables, since array_slice() can cause issues on some versions of PHP.
parent bccd256d
......@@ -260,7 +260,8 @@ function user_admin_settings() {
// Do not allow users to set the anonymous or authenticated user roles as the
// administrator role.
$roles = user_roles();
$roles = array_slice($roles, 2, NULL, TRUE);
unset($roles[DRUPAL_ANONYMOUS_RID]);
unset($roles[DRUPAL_AUTHENTICATED_RID]);
$roles[0] = t('disabled');
$form['admin_role']['user_admin_role'] = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment