Small modification to ensure that the user variable at least includes their name if they have no roles;

This commit is contained in:
jacob 2012-03-06 18:22:18 +00:00
parent 88ed011e5a
commit fc503f505c

View File

@ -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)){