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 /plugins/CoreHome/Visitor.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 'plugins/CoreHome/Visitor.php')
-rw-r--r-- | plugins/CoreHome/Visitor.php | 4 |
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 |