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:
authormattab <matthieu.aubry@gmail.com>2014-12-29 04:56:13 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-29 04:56:59 +0300
commit3a054d3f2e03c25584d00c673bb136416423127e (patch)
treeb5f4b4da5d9279cdc1da502e347d0dc143b6a5b3 /core/Tracker/Visit.php
parentfcfd0e7fa5f62dde81020c9f84920eda8a588f75 (diff)
prevent notice when returned array does not have a timezone
Diffstat (limited to 'core/Tracker/Visit.php')
-rw-r--r--core/Tracker/Visit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php
index f6ae0364c8..1f8c734abb 100644
--- a/core/Tracker/Visit.php
+++ b/core/Tracker/Visit.php
@@ -642,6 +642,9 @@ class Visit implements VisitInterface
} catch (UnexpectedWebsiteFoundException $e) {
return;
}
+ if(!isset($site['timezone'])) {
+ return;
+ }
$date = Date::factory((int) $time, $site['timezone']);