diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-30 08:56:57 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-30 08:56:57 +0400 |
commit | 8f67a195cb52b5879bed407c9d7392dcec527e67 (patch) | |
tree | 8ac130b85cf51ca5cfae0a25ab0b8712de4ded43 /libs/PiwikTracker | |
parent | 9206f7d2639e2a6a279f000f772962e08cf17fcc (diff) |
Fix setrawcookie error message
Diffstat (limited to 'libs/PiwikTracker')
-rw-r--r-- | libs/PiwikTracker/PiwikTracker.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php index d9bf125d10..bc7660b3ee 100644 --- a/libs/PiwikTracker/PiwikTracker.php +++ b/libs/PiwikTracker/PiwikTracker.php @@ -122,7 +122,7 @@ class PiwikTracker $this->currentTs = time(); $this->createTs = $this->currentTs; - $this->visitCount = false; + $this->visitCount = 0; $this->currentVisitTs = false; $this->lastVisitTs = false; $this->lastEcommerceOrderTs = false; @@ -898,7 +898,7 @@ class PiwikTracker } $this->cookieVisitorId = $parts[0]; // provides backward compatibility since getVisitorId() didn't change any existing VisitorId value $this->createTs = $parts[1]; - $this->visitCount = $parts[2]; + $this->visitCount = (int)$parts[2]; $this->currentVisitTs = $parts[3]; $this->lastVisitTs = $parts[4]; if(isset($parts[5])) { @@ -1401,7 +1401,7 @@ class PiwikTracker { $cookieExpire = $this->createTs + $cookieTTL; if(!headers_sent()) { - setrawcookie($this->getCookieName($cookieName), $cookieValue, $cookieExpire, $this->configCookiePath, $this->configCookieDomain); + setcookie($this->getCookieName($cookieName), $cookieValue, $cookieExpire, $this->configCookiePath, $this->configCookieDomain); } } |