\r
/* Detect user's langage if we are in automatic mode. */\r
if (strcmp ($cfg['lang'], 'auto') == 0)\r
- $l = substr ($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);\r
+ {\r
+ if (isset ($_SERVER['HTTP_ACCEPT_LANGUAGE']))\r
+ $l = substr ($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);\r
+ else\r
+ $l = "en";\r
+ }\r
else\r
$l = $cfg['lang'];\r
\r