diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-05-23 14:39:17 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-05-23 14:39:17 +0000 |
| commit | fa353181c068cb4778a696234d88c59007399bd0 (patch) | |
| tree | 69130b291a937d41253e1ef9ee3fb1d016122772 /public | |
| parent | c17e1b501bf3b15e65690537a0f7d76af65fc506 (diff) | |
provide empty string as alternative for HTTP_ACCEPT_LANGUAGE, fixes #4209
Closes #4209
Merge request studip/studip!3038
Diffstat (limited to 'public')
| -rw-r--r-- | public/install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/install.php b/public/install.php index e9b0bf6..4e54575 100644 --- a/public/install.php +++ b/public/install.php @@ -43,7 +43,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) { [$lang, ] = explode(';', $lang); $lang = substr($lang, 0, 2); |
