one less call to lang()

This commit is contained in:
Miles Lott 2004-01-17 03:57:14 +00:00
parent e029c2151a
commit 1824a46f63

View File

@ -238,15 +238,12 @@
$GLOBALS['phpgw']->template->set_block('addressbook_list_t','addressbook_alpha','addressbook_alpha');
/* Setup query for 1st char of fullname, company, lastname using user lang */
if(lang('alphabet') == 'alphabet*')
$chars = lang('alphabet');
if($chars == 'alphabet*')
{
$chars = 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z';
}
else
{
$chars = lang('alphabet');
}
$aar = explode(',',$chars);
$aar = explode(',', $chars);
$aar[] = 'all';
foreach($aar as $char)
{