summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/HTTP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/HTTP.php b/pear/HTTP.php
index c9b8459788..b03a1e446b 100644
--- a/pear/HTTP.php
+++ b/pear/HTTP.php
@@ -80,7 +80,7 @@ class HTTP {
* it contains a language we support.
*/
if (isset($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'])) {
- $accepted = split(',[[:space:]]*', $HTTP_ACCEPT_LANGUAGE);
+ $accepted = split(',[[:space:]]*', $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']);
for ($i = 0; $i < count($accepted); $i++) {
if (eregi('^([a-z]+);[[:space:]]*q=([0-9\.]+)', $accepted[$i], $arr)) {
$q = (double)$arr[2];