Fix bad setting of var when no lang is set

This commit is contained in:
Miles Lott 2004-01-17 03:52:33 +00:00
parent d53d3bf0ef
commit e029c2151a

View File

@ -240,12 +240,13 @@
/* Setup query for 1st char of fullname, company, lastname using user lang */ /* Setup query for 1st char of fullname, company, lastname using user lang */
if(lang('alphabet') == 'alphabet*') if(lang('alphabet') == 'alphabet*')
{ {
$aar = array('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'); $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 else
{ {
$aar = explode(',',lang('alphabet')); $chars = lang('alphabet');
} }
$aar = explode(',',$chars);
$aar[] = 'all'; $aar[] = 'all';
foreach($aar as $char) foreach($aar as $char)
{ {