From 9cbc6b4a12e04d2e0410acf79ef4715d24e24231 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Oct 2007 07:26:55 +0000 Subject: [PATCH] Fixed warnings with not set $_SERVER values in accept_get_text git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7578 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/accept-to-gettext.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/accept-to-gettext.inc b/include/accept-to-gettext.inc index 044f932ea..7d39ecf93 100644 --- a/include/accept-to-gettext.inc +++ b/include/accept-to-gettext.inc @@ -90,6 +90,9 @@ function al2gt($gettextlangs, $mime) if(!isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])){ $_SERVER["HTTP_ACCEPT_LANGUAGE"] = ""; } + if(!isset($_SERVER["HTTP_ACCEPT_CHARSET"])){ + $_SERVER["HTTP_ACCEPT_CHARSET"] = ""; + } /* default to "everything is acceptable", as RFC2616 specifies */ $acceptLang=(($_SERVER["HTTP_ACCEPT_LANGUAGE"] == '') ? '*' : -- 2.30.2