From 9426f937e38071a236225d29487673539c4da35a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Oct 2007 07:27:38 +0000 Subject: [PATCH] Fixed warnings in get text git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7579 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/accept-to-gettext.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]), -- 2.30.2