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:
authormattab <matthieu.aubry@gmail.com>2014-10-01 07:26:52 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-01 07:26:52 +0400
commitcd1b52dd2e5807d2871e6037815cae2390c5243d (patch)
tree5e5ff7f877d60f8d477f9d21cf5b2d659acea68a /plugins/CoreHome/Visitor.php
parent2cd5f09a52fe28ff644827a58ce0f88f177b3f7e (diff)
Fixes #6313 - When a user starts to get a User ID set, then we set this User ID to the existing visit rather than create a new visit for this user id specifically
Diffstat (limited to 'plugins/CoreHome/Visitor.php')
-rw-r--r--plugins/CoreHome/Visitor.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/Visitor.php b/plugins/CoreHome/Visitor.php
index 688d1c8bb6..35b64b3d30 100644
--- a/plugins/CoreHome/Visitor.php
+++ b/plugins/CoreHome/Visitor.php
@@ -102,10 +102,10 @@ class Visitor
function getUserId()
{
if (isset($this->details['user_id'])
- && !is_null($this->details['user_id'])) {
+ && strlen($this->details['user_id']) > 0) {
return $this->details['user_id'];
}
- return false;
+ return null;
}
} \ No newline at end of file