X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Faccept-to-gettext.inc;h=7d39ecf934ca6253037335eb8bf4d51835e8c96f;hb=5ac46e680e92e8e585e88560985ca46d8211a4b8;hp=abf6b60c1c64b8f3a3bc779de7229101f9bafc17;hpb=672c9b6a4b02fc6dcaf8e1cfbc6e8021d9b2be50;p=gosa.git diff --git a/include/accept-to-gettext.inc b/include/accept-to-gettext.inc index abf6b60c1..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"] == '') ? '*' : @@ -164,9 +167,10 @@ function al2gt($gettextlangs, $mime) if(!isset($alscores[$noct[0]])){ $alscores[$noct[0]] = ""; } + if(!isset($acscores[$gtcs])){ $acscores[$gtcs] = ""; - } + } $testvals=array( array($alscores[$allang], $acscores[$gtcs]), array($alscores[$noct[0]], $acscores[$gtcs]),