only chop the last 2 chars if they are {comma}{space}

This commit is contained in:
Miles Lott 2002-02-16 13:48:41 +00:00
parent a91c9e31b2
commit 61c9a64dd0

View File

@ -396,9 +396,12 @@
$langs_list = ($langs_list ? $langs_list . ', ' : '') . $value;
}
if(@strlen($langs_list))
{
if(substr($langs_list,0,-2) == ', ')
{
$langs_list = substr($langs_list,0,-2);
}
}
$setup_tpl->set_var('lang_status_img',$completed);
$setup_tpl->set_var('lang_status_alt','completed');