Skip to content

Commit

Permalink
Prevent Warning: Invalid argument supplied for foreach() in /[removed…
Browse files Browse the repository at this point in the history
…]/dev/piwik/libs/PiwikTracker/PiwikTracker.php on line 1571
  • Loading branch information
mattab committed Jan 4, 2015
1 parent cb71435 commit 84a994a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PiwikTracker.php
Expand Up @@ -1493,6 +1493,9 @@ protected function getCookieMatchingName($name)
if($this->configCookiesDisabled) {
return false;
}
if(!is_array($_COOKIE)) {
return false;
}
$name = $this->getCookieName($name);

// Piwik cookie names use dots separators in piwik.js,
Expand Down

0 comments on commit 84a994a

Please sign in to comment.