Fixed some graphs having the wrong timeframe (#10554)

This commit is contained in:
Tony Murray
2019-08-22 16:23:24 -05:00
committed by Neil Lathwood
parent c089f3bae4
commit f1a7379f4a

View File

@@ -2,8 +2,13 @@
use LibreNMS\Util\Clean;
$from = parse_at_time($_GET['from']);
$to = parse_at_time($_GET['to']);
if ($_GET['from']) {
$from = parse_at_time($_GET['from']);
}
if ($_GET['to']) {
$to = parse_at_time($_GET['to']);
}
if ($_GET['width']) {
$width = (int)$_GET['width'];