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:
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