Skip to content
Snippets Groups Projects
Commit 64824c40 authored by Jared Hancock's avatar Jared Hancock
Browse files

dashboard: Fix crash getting data for plots

parent cf9bbe07
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment