fix the use of deprecated firstname/lastname; using account_firstname/account_lastname

This commit is contained in:
Klaus Leithoff 2012-08-30 11:49:06 +00:00
parent bd270b4010
commit 6b8a937977

View File

@ -344,8 +344,8 @@ class common
if (! $lid && ! $firstname && ! $lastname)
{
$lid = $GLOBALS['egw_info']['user']['account_lid'];
$firstname = $GLOBALS['egw_info']['user']['firstname'];
$lastname = $GLOBALS['egw_info']['user']['lastname'];
$firstname = $GLOBALS['egw_info']['user']['account_firstname'];
$lastname = $GLOBALS['egw_info']['user']['account_lastname'];
}
$is_group = $GLOBALS['egw']->accounts->get_type($accountid ? $accountid : $lid) == 'g';