From 68ab4f4d97499833d567ab7ddacbc8f81fa55ec5 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Sat, 29 Jun 2019 13:51:21 +0200 Subject: Fix Browser and OS name segments (#14589) --- plugins/DevicesDetection/Columns/BrowserName.php | 2 +- 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); -- cgit v1.2.3