From 213ba09f9fc2bc2a9cde88bd44346c059c822633 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 12 Nov 2014 23:19:57 +0000 Subject: [PATCH] Fixed some scrutinizer issues --- html/includes/api_functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index f8d990dc6..a0a6e1a23 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -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) {