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
path: root/js
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-01-19 22:32:38 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-01-19 22:32:38 +0300
commit18b2dcf96cbaa782887c853e6a89276b340f6898 (patch)
tree92201342799cf8dfa30db546150ed333b14d63a5 /js
parentadcf4f0e8642287ceeb28ca0e07dda9a9efad00d (diff)
fixes #7043 prevent a type error if userId is null
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 98f22d7f8a..a2fa1cb0b0 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -2916,7 +2916,7 @@ if (typeof Piwik !== 'object') {
'&h=' + now.getHours() + '&m=' + now.getMinutes() + '&s=' + now.getSeconds() +
'&url=' + encodeWrapper(purify(currentUrl)) +
(configReferrerUrl.length ? '&urlref=' + encodeWrapper(purify(configReferrerUrl)) : '') +
- (configUserId.length ? '&uid=' + encodeWrapper(configUserId) : '') +
+ ((configUserId+'').length ? '&uid=' + encodeWrapper(configUserId) : '') +
'&_id=' + uuid + '&_idts=' + createTs + '&_idvc=' + visitCount +
'&_idn=' + newVisitor + // currently unused
(campaignNameDetected.length ? '&_rcn=' + encodeWrapper(campaignNameDetected) : '') +