diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-02-13 07:30:39 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-02-13 08:23:12 +0300 |
commit | d7da8e6da142c7cadb5cb2c2610d4f63a365da97 (patch) | |
tree | fcc99e4194fc747fd73eec9c0c297d6f7daef0b4 /plugins/VisitTime | |
parent | a3d12964878e19d02dfa8e311a9152df6f30bfc6 (diff) |
refs #4633 this should fix the last remaining system test
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r-- | plugins/VisitTime/API.php | 3 |
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); } |