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:
authorThomas Steur <thomas.steur@gmail.com>2015-02-13 07:30:39 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-13 08:23:12 +0300
commitd7da8e6da142c7cadb5cb2c2610d4f63a365da97 (patch)
treefcc99e4194fc747fd73eec9c0c297d6f7daef0b4 /plugins/VisitTime
parenta3d12964878e19d02dfa8e311a9152df6f30bfc6 (diff)
refs #4633 this should fix the last remaining system test
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r--plugins/VisitTime/API.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/VisitTime/API.php b/plugins/VisitTime/API.php
index d0a52b2a45..c78534c193 100644
--- a/plugins/VisitTime/API.php
+++ b/plugins/VisitTime/API.php
@@ -54,8 +54,11 @@ class API extends \Piwik\Plugin\API
$timezone = Site::getTimezoneFor($idSite);
$range = Range::parseDateRange($date);
+
if (!empty($range[2])) {
$endDate = Date::factory($range[2]);
+ } else if (!empty($range[1])) {
+ $endDate = Date::factory($range[1]);
} else {
$endDate = Date::factory($date);
}