diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2016-01-13 01:34:48 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2016-01-13 01:34:48 +0300 |
commit | e62c61cbea52320029052ca42b5ae0d96f9a0e36 (patch) | |
tree | 5252e57bba9091d3e46a4ccfeb6c18b45ab64cda | |
parent | 23cc5579839f92ccdb2fd7ce7210653dc66c59c5 (diff) |
refs #9495 fix usercountry map does not work when no segment is specified
-rw-r--r-- | plugins/UserCountryMap/Controller.php | 5 |
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'])) { |