From: Martin Jansen Date: Thu, 31 Jan 2002 13:41:04 +0000 (+0000) Subject: * Fix bug #15313 X-Git-Tag: PRE_ISSET_PATCH~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2077f62d08a15dbb7fd8ef049423095a4ccae20a;p=php * Fix bug #15313 --- 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];