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
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2016-01-13 01:34:48 +0300
committerThomas Steur <thomas.steur@gmail.com>2016-01-13 01:34:48 +0300
commite62c61cbea52320029052ca42b5ae0d96f9a0e36 (patch)
tree5252e57bba9091d3e46a4ccfeb6c18b45ab64cda
parent23cc5579839f92ccdb2fd7ce7210653dc66c59c5 (diff)
refs #9495 fix usercountry map does not work when no segment is specified
-rw-r--r--plugins/UserCountryMap/Controller.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/Controller.php b/plugins/UserCountryMap/Controller.php
index d7e18b268e..e38bf73113 100644
--- a/plugins/UserCountryMap/Controller.php
+++ b/plugins/UserCountryMap/Controller.php
@@ -225,7 +225,10 @@ class Controller extends \Piwik\Plugin\Controller
$params['format'] = 'json';
$params['showRawMetrics'] = 1;
if (empty($params['segment'])) {
- $params['segment'] = Request::getRawSegmentFromRequest();
+ $segment = Request::getRawSegmentFromRequest();
+ if (!empty($segment)) {
+ $params['segment'] = $segment;
+ }
}
if (!empty($params['segment'])) {