cvs: pear /I18Nv2 Negotiator.php
| From: | Michael Wallner | Date: | Sun, 14 Mar 2004 16:57:58 +0000 |
| Subject: | cvs: pear /I18Nv2 Negotiator.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17408@lists.php.net to get a copy of this message | ||
mike Sun Mar 14 11:57:58 2004 EDT
Modified files:
/pear/I18Nv2 Negotiator.php
Log:
* supress notice if there's no HTTP_ACCEPT_LANGUAGE
http://cvs.php.net/diff.php/pear/I18Nv2/Negotiator.php?r1=1.4&r2=1.5&ty=u
Index: pear/I18Nv2/Negotiator.php
diff -u pear/I18Nv2/Negotiator.php:1.4 pear/I18Nv2/Negotiator.php:1.5
--- pear/I18Nv2/Negotiator.php:1.4 Sun Mar 14 10:27:00 2004
+++ pear/I18Nv2/Negotiator.php Sun Mar 14 11:57:58 2004
@@ -16,7 +16,7 @@
// | Michael Wallner <mike@iworks.at> |
// +----------------------------------------------------------------------+
//
-// $Id: Negotiator.php,v 1.4 2004/03/14 15:27:00 mike Exp $
+// $Id: Negotiator.php,v 1.5 2004/03/14 16:57:58 mike Exp $
/**
* I18Nv2::Negotiator
@@ -31,7 +31,7 @@
* @author Naoki Shima <murahachibu@php.net>
* @author Wolfram Kriesing <wk@visionp.de>
* @author Michael Wallner <mike@php.net>
-* @version $Revision: 1.4 $
+* @version $Revision: 1.5 $
* @access public
* @package I18Nv2
*/
@@ -148,7 +148,7 @@
*/
function _negotiateLanguage()
{
- foreach(explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $lang) {
+ foreach(explode(',', @$_SERVER['HTTP_ACCEPT_LANGUAGE']) as $lang) {
// Cut off any q-value that might come after a semi-colon
if ($pos = strpos($lang, ';')) {
$lang = trim(substr($lang, 0, $pos));