Fix: Removed warning

This commit is contained in:
Laurent Destailleur 2012-04-04 20:18:39 +02:00
parent cbe2e3c15c
commit b3c66fc123

View File

@ -89,7 +89,7 @@ class Translate
if (empty($srclang) || $srclang == 'auto')
{
$langpref=$_SERVER['HTTP_ACCEPT_LANGUAGE'];
$langpref=empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])?'':$_SERVER['HTTP_ACCEPT_LANGUAGE'];
$langpref=preg_replace("/;([^,]*)/i","",$langpref);
$langpref=str_replace("-","_",$langpref);
$langlist=preg_split("/[;,]/",$langpref);