From: hickert Date: Wed, 17 Oct 2007 07:26:55 +0000 (+0000) Subject: Fixed warnings with not set $_SERVER values in accept_get_text X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9cbc6b4a12e04d2e0410acf79ef4715d24e24231;p=gosa.git 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 --- 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"] == '') ? '*' :