diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-06-29 14:51:21 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2019-06-29 14:51:21 +0300 |
commit | 68ab4f4d97499833d567ab7ddacbc8f81fa55ec5 (patch) | |
tree | da1f8f4db10bdfd4ecb6cba6aac3150dcd0135a7 | |
parent | eb8731a64379be88e29d1bf32b0b661c29f2356f (diff) |
Fix Browser and OS name segments (#14589)
-rw-r--r-- | plugins/DevicesDetection/Columns/BrowserName.php | 2 | ||||
-rw-r--r-- | plugins/DevicesDetection/Columns/Os.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DevicesDetection/Columns/BrowserName.php b/plugins/DevicesDetection/Columns/BrowserName.php index 2b3c205a2f..0f387923f7 100644 --- a/plugins/DevicesDetection/Columns/BrowserName.php +++ b/plugins/DevicesDetection/Columns/BrowserName.php @@ -38,7 +38,7 @@ class BrowserName extends Base $segment->setAcceptedValues('FireFox, Internet Explorer, Chrome, Safari, Opera etc.'); $segment->setSqlFilterValue(function ($val) { $browsers = Browser::getAvailableBrowsers(); - array_map(function($val) { + $browsers = array_map(function($val) { return Common::mb_strtolower($val); }, $browsers); $result = array_search(Common::mb_strtolower($val), $browsers); diff --git a/plugins/DevicesDetection/Columns/Os.php b/plugins/DevicesDetection/Columns/Os.php index a86928279e..c795181bd3 100644 --- a/plugins/DevicesDetection/Columns/Os.php +++ b/plugins/DevicesDetection/Columns/Os.php @@ -40,7 +40,7 @@ class Os extends Base $segment->setAcceptedValues('Windows, Linux, Mac, Android, iOS etc.'); $segment->setSqlFilterValue(function ($val) { $oss = OperatingSystem::getAvailableOperatingSystems(); - array_map(function($val) { + $oss = array_map(function($val) { return Common::mb_strtolower($val); }, $oss); $result = array_search(Common::mb_strtolower($val), $oss); |