fixed an E_NOTICE warning

This commit is contained in:
Ralf Becker 2004-07-10 09:25:53 +00:00
parent 0a5573a0fe
commit 6223948d37

View File

@ -111,7 +111,7 @@
}
$select = '<select name="ConfigLang"'.($onChange ? ' onChange="this.form.submit();"' : '').'>' . "\n";
$languages = get_langs();
usort($languages,create_function('$a,$b','return strcmp($a[\'descr\'],$b[\'descr\']);'));
usort($languages,create_function('$a,$b','return strcmp(@$a[\'descr\'],@$b[\'descr\']);'));
foreach($languages as $data)
{
if($data['available'] && !empty($data['lang']))