From ee81dee9339548d6dfdfac2022f01a26dbf45a65 Mon Sep 17 00:00:00 2001
From: Moritz Strohm <strohm@data-quest.de>
Date: Thu, 23 May 2024 14:39:17 +0000
Subject: [PATCH] provide empty string as alternative for HTTP_ACCEPT_LANGUAGE,
 fixes #4209

---
 public/install.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/install.php b/public/install.php
index 6d719699c95..6562572a056 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);
 
-- 
GitLab