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:
Diffstat (limited to 'plugins/Events/Columns/EventCategory.php')
-rw-r--r--plugins/Events/Columns/EventCategory.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Events/Columns/EventCategory.php b/plugins/Events/Columns/EventCategory.php
index 7c6b5fd02a..731dd9615c 100644
--- a/plugins/Events/Columns/EventCategory.php
+++ b/plugins/Events/Columns/EventCategory.php
@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\Events\Columns;
+use Piwik\Exception\InvalidRequestParameterException;
use Piwik\Piwik;
use Piwik\Plugin\Dimension\ActionDimension;
use Piwik\Plugins\Events\Segment;
@@ -44,13 +45,13 @@ class EventCategory extends ActionDimension
return false;
}
- $eventCategory = $request->getParam('e_c');
+ $eventCategory = $action->getEventCategory();
$eventCategory = trim($eventCategory);
if (strlen($eventCategory) > 0) {
return $eventCategory;
}
- return false;
+ throw new InvalidRequestParameterException('Param `e_c` must not be empty or filled with whitespaces');
}
} \ No newline at end of file