diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-05-23 07:48:05 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-05-23 07:48:05 +0400 |
commit | 80721ac6fd81c425e2af6b940d507cd5c886f97a (patch) | |
tree | 0193b1f6299583cdc3a3eb580b225e2cfe04980a /core | |
parent | debae0756cba9e5bd2bafc9e8e037757b740e783 (diff) |
Fixes #39511.12-b16
Diffstat (limited to 'core')
-rw-r--r-- | core/Tracker/Visit.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php index 24b1c2e8d1..f7ea1ea10e 100644 --- a/core/Tracker/Visit.php +++ b/core/Tracker/Visit.php @@ -1199,7 +1199,11 @@ class Piwik_Tracker_Visit implements Piwik_Tracker_Visit_Interface $visitRow = Piwik_Tracker::getDatabase()->fetch($sql, $bindSql); - if (!Piwik_Config::getInstance()->Debug['tracker_always_new_visitor'] + $newVisitEnforcedAPI = !empty($this->request['new_visit']) + && ($this->authenticated || !Piwik_Config::getInstance()->Tracker['new_visit_api_requires_admin']); + $enforceNewVisit = $newVisitEnforcedAPI || Piwik_Config::getInstance()->Debug['tracker_always_new_visitor']; + + if (!$enforceNewVisit && $visitRow && count($visitRow) > 0 ) { |