diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-27 11:59:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 11:59:52 +0300 |
commit | d1e80dc071780dda8ad7a79e82a4c874d3523d93 (patch) | |
tree | ee9ed9ee790c1fdccead80f03baeeab4f30c08d4 /plugins/Actions | |
parent | 7dc4f49ad1dccd870836dfdbf20f4d33348b0b14 (diff) |
Prevent out of range issues for interaction_position (#11101)
Diffstat (limited to 'plugins/Actions')
-rw-r--r-- | plugins/Actions/Columns/VisitTotalInteractions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Actions/Columns/VisitTotalInteractions.php b/plugins/Actions/Columns/VisitTotalInteractions.php index ee8d4938d8..14a5572ad4 100644 --- a/plugins/Actions/Columns/VisitTotalInteractions.php +++ b/plugins/Actions/Columns/VisitTotalInteractions.php @@ -74,7 +74,10 @@ class VisitTotalInteractions extends VisitDimension { $position = $request->getMetadata('Actions', 'visit_total_interactions'); - return $position + 1; + $position = $position + 1; + + // Remove this in Piwik 4 + return min($position, 32765); } /** |