diff --git a/html/includes/print-vlan.inc.php b/html/includes/print-vlan.inc.php index b6d64f20f..09d98428e 100644 --- a/html/includes/print-vlan.inc.php +++ b/html/includes/print-vlan.inc.php @@ -6,13 +6,13 @@ echo(""); echo(" Vlan " . $vlan['vlan_vlan'] . ""); echo("" . $vlan['vlan_descr'] . ""); - echo(""); + foreach (dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?", array($device['device_id'], $vlan['vlan_vlan'])) as $port) { - if ($_GET['opta']) + if ($vars['view']) { - $graph_type = $_GET['opta']; + $graph_type = $vars['view']; echo("
".makeshortif($port['ifDescr'])."
diff --git a/html/pages/device/vlans.inc.php b/html/pages/device/vlans.inc.php index 4e89dece2..4cb79628e 100644 --- a/html/pages/device/vlans.inc.php +++ b/html/pages/device/vlans.inc.php @@ -4,13 +4,13 @@ print_optionbar_start(); echo("VLANs » "); -echo(" - Basic | Graphs : - Bits | - Packets | - NU Packets | - Errors - "); +echo(' + Basic | Graphs : + Bits | + Packets | + NU Packets | + Errors + '); print_optionbar_end();