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@googlemail.com>2014-06-20 08:29:45 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-20 08:29:45 +0400
commit417a369f28b66b31eac26653b0ed146c82130191 (patch)
treeca8147f9305f38cee7f4599ec922e2026f5289f2 /core/Tracker/Visitor.php
parenta4447882c0ca5e84c192e1788c5049cf5af19fc6 (diff)
as we cache the instances of dimensions now the dimensions should be stateless... not sure if it is a good idea but need to see..., also might fix a bug in case a visitor was not found in the DB. We need to reset potentially set visitor columns in this case
Diffstat (limited to 'core/Tracker/Visitor.php')
-rw-r--r--core/Tracker/Visitor.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Tracker/Visitor.php b/core/Tracker/Visitor.php
index 8e12b2de1c..627982e455 100644
--- a/core/Tracker/Visitor.php
+++ b/core/Tracker/Visitor.php
@@ -299,6 +299,11 @@ class Visitor
return $this->visitorInfo;
}
+ public function clearVisitorInfo()
+ {
+ $this->visitorInfo = array();
+ }
+
public function setVisitorColumn($column, $value)
{
$this->visitorInfo[$column] = $value;