fixed get_account_name to convert the values

This commit is contained in:
Ralf Becker 2003-10-10 12:45:07 +00:00
parent 71c2acae50
commit d73cfd3122

View File

@ -61,7 +61,7 @@
$this->data['account_id'] = $allValues[0]['gidnumber'][0];
$this->data['account_lid'] = $allValues[0]['cn'][0];
$this->data['firstname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['cn'][0],'utf-8');
$this->data['lastname'] = 'Group';
$this->data['lastname'] = lang('Group');
}
else
{
@ -1029,15 +1029,15 @@
if($acct_type =='g')
{
$account_name[$account_id]['lid'] = $allValues[0]['cn'][0];
$account_name[$account_id]['fname'] = $allValues[0]['cn'][0];
$account_name[$account_id]['lname'] = 'Group';
$account_name[$account_id]['lid'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['cn'][0],'utf-8');
$account_name[$account_id]['fname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['cn'][0],'utf-8');
$account_name[$account_id]['lname'] = lang('Group');
}
else
{
$account_name[$account_id]['lid'] = $allValues[0]['uid'][0];
$account_name[$account_id]['fname'] = $allValues[0]['givenname'][0];
$account_name[$account_id]['lname'] = $allValues[0]['sn'][0];
$account_name[$account_id]['lid'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['uid'][0],'utf-8');
$account_name[$account_id]['fname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['givenname'][0],'utf-8');
$account_name[$account_id]['lname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['sn'][0],'utf-8');
}
$lid = $account_name[$account_id]['lid'];
$fname = $account_name[$account_id]['fname'];