diff --git a/include/ajax.reports.php b/include/ajax.reports.php index 6dbf60df52322a91d8b513fb530e2246eb9c0ede..6086e3cb0b65fb214c14dd141d874976c25c0916 100644 --- a/include/ajax.reports.php +++ b/include/ajax.reports.php @@ -19,6 +19,7 @@ if(!defined('INCLUDE_DIR')) die('403'); include_once(INCLUDE_DIR.'class.ticket.php'); +include_once(INCLUDE_DIR.'class.report.php'); /** * Overview Report @@ -174,11 +175,7 @@ class OverviewReportAjaxAPI extends AjaxController { $stop = $this->get('period', 'now'); } - if ($start != 'last month') - $start = DateTime::createFromFormat($cfg->getDateFormat(), - $start)->format('U'); - else - $start = strtotime($start); + $start = strtotime($start); if (substr($stop, 0, 1) == '+') $stop = strftime('%Y-%m-%d ', $start) . $stop;