Fixed some scrutinizer issues

This commit is contained in:
laf
2014-11-12 23:19:57 +00:00
parent 3522f66f69
commit 213ba09f9f

View File

@ -395,6 +395,8 @@ function get_graph_by_group() {
$vars['height'] = $_GET['height'] ?: 300;
$auth = "1";
$type_where = " (";
$or = '';
$type_param = array();
foreach (explode(",", $group) as $type)
{
$type_where .= " $or `port_descr_type` = ?";
@ -403,6 +405,8 @@ function get_graph_by_group() {
}
$type_where .= ") ";
$if_list = '';
$seperator = '';
$ports = dbFetchRows("SELECT * FROM `ports` as I, `devices` AS D WHERE $type_where AND I.device_id = D.device_id ORDER BY I.ifAlias", $type_param);
foreach ($ports as $port)
{