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

This commit is contained in:
Klaus Leithoff 2012-08-30 11:50:00 +00:00
parent 2d22b12486
commit 8e755e1813

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';