diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-19 22:32:38 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-01-19 22:32:38 +0300 |
commit | 18b2dcf96cbaa782887c853e6a89276b340f6898 (patch) | |
tree | 92201342799cf8dfa30db546150ed333b14d63a5 /js | |
parent | adcf4f0e8642287ceeb28ca0e07dda9a9efad00d (diff) |
fixes #7043 prevent a type error if userId is null
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 2 |
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) : '') + |