diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index cbba6fbba5..8c4cf2817a 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -62,7 +62,7 @@ function get_graph_by_port_hostname() { $vars['to'] = $_GET['to']; } - if (!empty($vars['ifDescr']) == true) { + if ($_GET['ifDescr'] == true) { $port = 'ifDescr'; } else {