Commit e8a60a29 authored by Ad Schellevis's avatar Ad Schellevis

(network insight) fix empty parameter

parent 5e10c0d1
......@@ -143,7 +143,8 @@ class NetworkinsightController extends ApiControllerBase
if ($this->request->get("filter_field") != null && $this->request->get("filter_value") != null) {
$data_filter = $this->request->get("filter_field") . "=" . $this->request->get("filter_value");
} else {
$data_filter = "";
// no filter, empty parameter
$data_filter = "''";
}
$backend = new Backend();
$configd_cmd = "netflow aggregate top {$provider} {$from_date} {$to_date} {$field}";
......@@ -154,6 +155,7 @@ class NetworkinsightController extends ApiControllerBase
return $graph_data;
}
}
return array();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment