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/EventAction.php')
-rw-r--r--plugins/Events/Columns/EventAction.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Events/Columns/EventAction.php b/plugins/Events/Columns/EventAction.php
index 79b3b5867b..30c33fe8da 100644
--- a/plugins/Events/Columns/EventAction.php
+++ b/plugins/Events/Columns/EventAction.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 EventAction extends ActionDimension
return false;
}
- $eventAction = $request->getParam('e_a');
+ $eventAction = $action->getEventAction();
$eventAction = trim($eventAction);
if (strlen($eventAction) > 0) {
return $eventAction;
}
- return false;
+ throw new InvalidRequestParameterException('Param `e_a` must not be empty or filled with whitespaces');
}
} \ No newline at end of file