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
diff options
context:
space:
mode:
Diffstat (limited to 'core/Tracker/Visit.php')
-rw-r--r--core/Tracker/Visit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php
index f4485f52fb..9de1490424 100644
--- a/core/Tracker/Visit.php
+++ b/core/Tracker/Visit.php
@@ -397,6 +397,11 @@ class Visit implements VisitInterface
*/
protected function updateExistingVisit($valuesToUpdate)
{
+ if (empty($valuesToUpdate)) {
+ Common::printDebug('There are no values to be updated for this visit');
+ return;
+ }
+
$idSite = $this->request->getIdSite();
$idVisit = (int)$this->visitProperties->getProperty('idvisit');