Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-05-25 16:20:22 +0400
committersgiehl <stefan@piwik.org>2014-05-25 16:20:22 +0400
commit7900025598b4901c12ad45bde2b97b471073b5c9 (patch)
tree9ede145f3785549fa050aad6da6fcb6765bfb7d4 /libs
parenta0819c5f5670ccdcddc281aff1e7b54bebc33b14 (diff)
php compatibility fixes
Diffstat (limited to 'libs')
-rw-r--r--libs/UserAgentParser/UserAgentParser.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/UserAgentParser/UserAgentParser.php b/libs/UserAgentParser/UserAgentParser.php
index 4f85951c93..c0c8fea1ce 100644
--- a/libs/UserAgentParser/UserAgentParser.php
+++ b/libs/UserAgentParser/UserAgentParser.php
@@ -656,8 +656,9 @@ class UserAgentParser
return self::$browserIdToName[$browserId];
}
if(class_exists('DeviceDetector\\Parser\\Client\\Browser')) {
- if( array_key_exists($browserId, DeviceDetector\Parser\Client\Browser::getAvailableBrowsers())) {
- return DeviceDetector\Parser\Client\Browser::getAvailableBrowsers()[$browserId];
+ $browsers = DeviceDetector\Parser\Client\Browser::getAvailableBrowsers();
+ if( array_key_exists($browserId, $browsers)) {
+ return $browsers[$browserId];
}
}
return false;