forked from science-ation/science-ation
Small modification to ensure that the user variable at least includes their name if they have no roles;
This commit is contained in:
parent
88ed011e5a
commit
fc503f505c
@ -466,7 +466,7 @@ function user_get_fields($userRoles = null){
|
||||
|
||||
// scrub for only valid roles, and fetch their special fields
|
||||
$enabledFields = array();
|
||||
$requiredFields = array();
|
||||
$requiredFields = array('firstname', 'lastname');
|
||||
$roleFields = array();
|
||||
foreach($userRoles as $role){
|
||||
if(array_key_exists($role, $roles)){
|
||||
|
Loading…
Reference in New Issue
Block a user