From: hickert Date: Thu, 11 Oct 2007 09:33:18 +0000 (+0000) Subject: Fixed warnins if ACCEPT_LANGUAGE wasn't set in header X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=113163ecd6922fbc795ecfffa07e502701c258f4;p=gosa.git Fixed warnins if ACCEPT_LANGUAGE wasn't set in header git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7505 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/accept-to-gettext.inc b/include/accept-to-gettext.inc index 52647c660..289cae435 100644 --- a/include/accept-to-gettext.inc +++ b/include/accept-to-gettext.inc @@ -86,6 +86,10 @@ function find_match($curlscore,$curcscore,$curgtlang,$langval,$charval, function al2gt($gettextlangs, $mime) { + /* Check if ACCEPT_LANGUAGE isset */ + if(!isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])){ + $_SERVER["HTTP_ACCEPT_LANGUAGE"] = ""; + } /* default to "everything is acceptable", as RFC2616 specifies */ $acceptLang=(($_SERVER["HTTP_ACCEPT_LANGUAGE"] == '') ? '*' :