diff --git a/lib/rrd.php b/lib/rrd.php index f5cb20b0b8..625c2ad35b 100644 --- a/lib/rrd.php +++ b/lib/rrd.php @@ -253,6 +253,10 @@ function cmp($a, $b) { } function ninety_fifth_percentile($local_data_id, $seconds) { + if (empty($local_data_id)) { + return; + } + $data_source_path = get_data_source_path($local_data_id, true); /* build and run the rrdtool fetch command with all of our data */ @@ -536,7 +540,7 @@ function rrdtool_function_graph($local_graph_id, $rra_id, $graph_data_array) { } }elseif ($match[3] == "total") { for ($t=0;($t