Fixed bug #14970: ts browser condition results in error if browser is unknown (Thanks...
authorSteffen Kamper <info@sk-typo3.de>
Sun, 11 Jul 2010 17:32:12 +0000 (17:32 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 11 Jul 2010 17:32:12 +0000 (17:32 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8160 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/utility/class.t3lib_utility_client.php

index 0971b75..a36a4c6 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-07-11  Steffen Kamper  <info@sk-typo3.de>
 
-       * Fixed bug  #15004: Cleanup cms autoload classes
+       * Fixed bug #14970: ts browser condition results in error if browser is unknown (Thanks to Caspar Stuebs) 
+       * Fixed bug #15004: Cleanup cms autoload classes
 
 2010-07-11  Susanne Moog  <typo3@susanne-moog.de>
 
index 50b0714..59ab6ff 100644 (file)
@@ -78,6 +78,8 @@ final class t3lib_utility_Client {
                        // Find all phrases (or return empty array if none found)
                if (!preg_match_all($pattern, strtolower($userAgent), $matches)) {
                        $browserInfo['browser'] = 'unknown';
+                       $browserInfo['version'] = '';
+                       $browserInfo['all'] = array();
                } else {
                                // Since some UAs have more than one phrase (e.g Firefox has a Gecko phrase,
                                // Opera 7,8 have a MSIE phrase), use the last one found (the right-most one