From fc503f505cc16c336d70a87c0562e5251a03ebb5 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 6 Mar 2012 18:22:18 +0000 Subject: [PATCH] Small modification to ensure that the user variable at least includes their name if they have no roles; --- user.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.inc.php b/user.inc.php index 6fc7c72..ff6a923 100644 --- a/user.inc.php +++ b/user.inc.php @@ -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)){