Skip to content
Snippets Groups Projects
Commit ee81dee9 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

provide empty string as alternative for HTTP_ACCEPT_LANGUAGE, fixes #4209

parent 2742889c
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ if (!function_exists('_')) {
} else {
require_once 'lib/language.inc.php';
foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $lang) {
foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '') as $lang) {
list($lang, ) = explode(';', $lang);
$lang = substr($lang, 0, 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment