mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Changed from is_numeric to empty as variables can now contain non-numeric
This commit is contained in:
@@ -91,13 +91,13 @@ list($format, $subformat) = explode("_", $vars['format'], 2);
|
||||
|
||||
if($format == "graph") {
|
||||
|
||||
if (!is_numeric($vars['from'])) {
|
||||
if (empty($vars['from'])) {
|
||||
$graph_array['from'] = $config['time']['day'];
|
||||
}
|
||||
else {
|
||||
$graph_array['from'] = $vars['from'];
|
||||
}
|
||||
if (!is_numeric($vars['to'])) {
|
||||
if (empty($vars['to'])) {
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user