Skip to content
Snippets Groups Projects
Commit b3c66fc1 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Removed warning

parent cbe2e3c1
Branches
Tags
No related merge requests found
...@@ -89,7 +89,7 @@ class Translate ...@@ -89,7 +89,7 @@ class Translate
if (empty($srclang) || $srclang == 'auto') 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=preg_replace("/;([^,]*)/i","",$langpref);
$langpref=str_replace("-","_",$langpref); $langpref=str_replace("-","_",$langpref);
$langlist=preg_split("/[;,]/",$langpref); $langlist=preg_split("/[;,]/",$langpref);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment