Browse Source

ZF-11274
Zend_Http_UserAgent_AbstractDevice raises a notice when $comment[3] undefined


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23892 44c647ce-9c0f-0410-b52a-842ac1e357ba

adamlundrigan 14 years ago
parent
commit
7b13eb9931
1 changed files with 3 additions and 1 deletions
  1. 3 1
      library/Zend/Http/UserAgent/AbstractDevice.php

+ 3 - 1
library/Zend/Http/UserAgent/AbstractDevice.php

@@ -648,7 +648,9 @@ abstract class Zend_Http_UserAgent_AbstractDevice
                     if (isset($comment[4])) {
                         $result['browser_build'] = trim($comment[4]);
                     }
-                    $result['browser_language'] = trim($comment[3]);
+                    if (isset($comment[3])) {
+                        $result['browser_language'] = trim($comment[3]);
+                    }
 
                     // Netscape
                     if ($result['browser_name'] == 'Navigator' || $result['browser_name'] == 'Netscape6') {