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 16:42:19 +0200 |
| commit | ee81dee9339548d6dfdfac2022f01a26dbf45a65 (patch) | |
| tree | 9c742d264a283635b25cf442464602fe68623cc0 /public | |
| parent | 2742889c67eaa3405ec30da61e2f7e11990e901f (diff) | |
provide empty string as alternative for HTTP_ACCEPT_LANGUAGE, fixes #4209
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 6d71969..6562572 100644 --- a/public/install.php +++ b/public/install.php @@ -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); |
