forked from science-ation/science-ation
Smarter user name logic
This commit is contained in:
parent
2743d237a2
commit
f05b4ba677
@ -214,7 +214,7 @@ function user_load($user, $uid = false)
|
|||||||
$ret['types'] = $ts; /* Now we can use in_array('judge', $ret['types']) ; */
|
$ret['types'] = $ts; /* Now we can use in_array('judge', $ret['types']) ; */
|
||||||
|
|
||||||
/* Convenience */
|
/* Convenience */
|
||||||
$ret['name'] = $ret['firstname'].' '.$ret['lastname'];
|
$ret['name'] = ($ret['firstname'] ? "{$ret['firstname']} " : '').$ret['lastname'];
|
||||||
|
|
||||||
/* Email recipient for "to" field on emails */
|
/* Email recipient for "to" field on emails */
|
||||||
if( ($ret['firstname'] || $ret['lastname']) && $ret['email']) {
|
if( ($ret['firstname'] || $ret['lastname']) && $ret['email']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user