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

provide empty string as alternative for HTTP_ACCEPT_LANGUAGE, fixes #4209

Closes #4209

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