diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-10-01 07:26:52 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-10-01 07:26:52 +0400 |
commit | cd1b52dd2e5807d2871e6037815cae2390c5243d (patch) | |
tree | 5e5ff7f877d60f8d477f9d21cf5b2d659acea68a /core/Tracker/Request.php | |
parent | 2cd5f09a52fe28ff644827a58ce0f88f177b3f7e (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 'core/Tracker/Request.php')
-rw-r--r-- | core/Tracker/Request.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index 8ded0dc7a2..212abbd0d2 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -551,12 +551,11 @@ class Request public function getForcedUserId() { $userId = $this->getParam('uid'); - if (strlen($userId) > 0) { return $userId; } - return null; + return false; } public function getForcedVisitorId() @@ -608,8 +607,8 @@ class Request * @param $userId * @return string */ - private function getUserIdHashed($userId) + public function getUserIdHashed($userId) { - return sha1($userId); + return substr( sha1( $userId ), 0, 16); } } |